Skip to content

Commit

Permalink
feat: add 'brand' to default colors
Browse files Browse the repository at this point in the history
  • Loading branch information
hirotomoyamada committed Jun 25, 2023
1 parent 71bc19e commit 540682f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/soft-experts-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@yamada-ui/core': minor
'@yamada-ui/cli': minor
---

Added `brand` to default colors.
2 changes: 1 addition & 1 deletion .storybook/arg-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const createArgTypes = (): ArgTypes => {
return { ...styleArgs, ...pseudoArgs, ...componentArgs, ...uiArgs }
}

const defaultKeys = ['primary', 'secondary', 'warning', 'danger', 'link']
const defaultKeys = ['brand', 'primary', 'secondary', 'warning', 'danger', 'link']

const hueKeys = ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900']

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/command/tokens/create-theme-typings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type Component = {
variants: string[]
}

const defaultColors = ['primary', 'secondary', 'warning', 'danger', 'link']
const defaultColors = ['brand', 'primary', 'secondary', 'warning', 'danger', 'link']

const hues = ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900']

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/styles/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ThemeToken } from '../theme'
import { StyledTheme } from '../theme.types'
import { Transform } from './config'

export const defaultColorSchemes = ['primary', 'secondary', 'warning', 'danger', 'link']
export const defaultColorSchemes = ['brand', 'primary', 'secondary', 'warning', 'danger', 'link']

const directions: Record<string, string> = {
'to-t': 'to top',
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const isObject = (value: unknown): value is Record<string, unknown> =>

const isString = (value: unknown): value is string => typeof value === 'string'

const defaultColors = ['primary', 'secondary', 'warning', 'danger', 'link']
const defaultColors = ['brand', 'primary', 'secondary', 'warning', 'danger', 'link']

const hues = ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900']

Expand Down

0 comments on commit 540682f

Please sign in to comment.