File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import * as colors from '@/../../theme/src/foundations/colors'
4
4
const BORDER_WIDTH_IN_PIXEL = 2
5
5
6
6
export function Colors ( { withText = false } : { withText ?: boolean } ) {
7
- const ELEMENT_WIDTH = ( withText ? 150 : 50 ) - BORDER_WIDTH_IN_PIXEL
7
+ const ELEMENT_WIDTH = ( withText ? 100 : 50 ) - BORDER_WIDTH_IN_PIXEL
8
8
9
9
return (
10
10
< >
@@ -28,8 +28,8 @@ export function Colors({withText = false}: {withText?: boolean}) {
28
28
</ div >
29
29
{ withText && (
30
30
< div >
31
- < Text fontFamily = "monospace" > { _key } .{ weight } </ Text >
32
- < Text fontFamily = "monospace" color = { colors . neutrals [ '500' ] } > { colorValue } </ Text >
31
+ < Text fontFamily = "monospace" fontSize = "xs" > { _key } .{ weight } </ Text >
32
+ < Text fontFamily = "monospace" fontSize = "xs" color = { colors . neutrals [ '500' ] } > { colorValue } </ Text >
33
33
</ div >
34
34
) }
35
35
</ VStack >
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { mode } from '@chakra-ui/theme-tools'
6
6
import { buttonTheme } from './components/button'
7
7
import { headingTheme } from './components/headings'
8
8
9
+ import * as colors from './foundations/colors'
9
10
import semanticColors from './style-guide/computedSemanticColors'
10
11
11
12
export const fonts = {
@@ -31,6 +32,7 @@ export const components = {
31
32
export const theme = extendBaseTheme ( {
32
33
fonts,
33
34
colors : {
35
+ ...colors ,
34
36
...semanticColors
35
37
} ,
36
38
styles,
You can’t perform that action at this time.
0 commit comments