Skip to content

Commit

Permalink
feat(theme): add borderAccentLight (uber#2783)
Browse files Browse the repository at this point in the history
* feat(theme): add borderAccentLight

* chore: add new token to vscode cheatsheet
  • Loading branch information
sandgraham authored and VladimirMilenko committed Apr 2, 2020
1 parent 91ca27d commit 93d33b8
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 20 deletions.
37 changes: 19 additions & 18 deletions documentation-site/pages/guides/theming.mdx
Expand Up @@ -171,15 +171,15 @@ import {createTheme, lightThemePrimitives} from 'baseui';

const primitives = {
...lightThemePrimitives,
accent: "#F127E4", // hot pink
accent50: "#FDEDFC",
accent100: "#FCD3F9",
accent200: "#F89FF3",
accent300: "#F45AEA",
accent400: "#F127E4",
accent500: "#B71DAD",
accent600: "#901788",
accent700: "#600F5B"
accent: '#F127E4', // hot pink
accent50: '#FDEDFC',
accent100: '#FCD3F9',
accent200: '#F89FF3',
accent300: '#F45AEA',
accent400: '#F127E4',
accent500: '#B71DAD',
accent600: '#901788',
accent700: '#600F5B',
};

const theme = createTheme(primitives);
Expand All @@ -200,15 +200,15 @@ import {createTheme, lightThemePrimitives} from 'baseui';

const primitives = {
...lightThemePrimitives,
accent: "#F127E4", // hot pink
accent50: "#FDEDFC",
accent100: "#FCD3F9",
accent200: "#F89FF3",
accent300: "#F45AEA",
accent400: "#F127E4",
accent500: "#B71DAD",
accent600: "#901788",
accent700: "#600F5B"
accent: '#F127E4', // hot pink
accent50: '#FDEDFC',
accent100: '#FCD3F9',
accent200: '#F89FF3',
accent300: '#F45AEA',
accent400: '#F127E4',
accent500: '#B71DAD',
accent600: '#901788',
accent700: '#600F5B',
};

const overrides = {
Expand Down Expand Up @@ -587,6 +587,7 @@ Control literal and semantic color values. These differ between light and dark t

<Color value="borderStateDisabled" />
<Color value="borderAccent" />
<Color value="borderAccentLight" />
<Color value="borderNegative" />
<Color value="borderWarning" />
<Color value="borderPositive" />
Expand Down
1 change: 1 addition & 0 deletions packages/baseweb-vscode-extension/src/App.tsx
Expand Up @@ -72,6 +72,7 @@ const COLORS = [
'contentOnColor',
'borderStateDisabled',
'borderAccent',
'borderAccentLight',
'borderNegative',
'borderWarning',
'borderPositive',
Expand Down
1 change: 1 addition & 0 deletions src/theme.ts
Expand Up @@ -150,6 +150,7 @@ interface Colors {
// Border
borderStateDisabled: string;
borderAccent: string;
borderAccentLight: string;
borderNegative: string;
borderWarning: string;
borderPositive: string;
Expand Down
3 changes: 2 additions & 1 deletion src/themes/dark-theme/color-semantic-tokens.js
Expand Up @@ -70,7 +70,8 @@ export default (

// Border
borderStateDisabled: colors.gray800,
borderAccent: colors.blue500,
borderAccent: colors.blue400,
borderAccentLight: colors.blue500,
borderNegative: colors.red500,
borderWarning: colors.yellow500,
borderPositive: colors.green500,
Expand Down
3 changes: 2 additions & 1 deletion src/themes/light-theme/color-semantic-tokens.js
Expand Up @@ -70,7 +70,8 @@ export default (

// Border
borderStateDisabled: colors.gray50,
borderAccent: colors.blue200,
borderAccent: colors.blue400,
borderAccentLight: colors.blue200,
borderNegative: colors.red200,
borderWarning: colors.yellow200,
borderPositive: colors.green200,
Expand Down
1 change: 1 addition & 0 deletions src/themes/types.js
Expand Up @@ -135,6 +135,7 @@ export type CoreExtensionSemanticColorTokensT = {
// Border
borderStateDisabled: string,
borderAccent: string,
borderAccentLight: string,
borderNegative: string,
borderWarning: string,
borderPositive: string,
Expand Down

0 comments on commit 93d33b8

Please sign in to comment.