radix-native 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +51 -0
  3. package/dist/index.cjs +4323 -0
  4. package/dist/index.d.cts +861 -0
  5. package/dist/index.d.mts +861 -0
  6. package/dist/index.d.ts +861 -0
  7. package/dist/index.mjs +4285 -0
  8. package/package.json +51 -0
  9. package/src/components/actions/Button.tsx +337 -0
  10. package/src/components/actions/Checkbox.tsx +216 -0
  11. package/src/components/actions/CheckboxCards.tsx +257 -0
  12. package/src/components/actions/CheckboxGroup.tsx +249 -0
  13. package/src/components/actions/index.ts +4 -0
  14. package/src/components/layout/Box.tsx +108 -0
  15. package/src/components/layout/Flex.tsx +149 -0
  16. package/src/components/layout/Grid.tsx +224 -0
  17. package/src/components/layout/index.ts +9 -0
  18. package/src/components/playground/ThemeControls.tsx +456 -0
  19. package/src/components/playground/index.ts +1 -0
  20. package/src/components/typography/Blockquote.tsx +137 -0
  21. package/src/components/typography/Code.tsx +164 -0
  22. package/src/components/typography/Em.tsx +68 -0
  23. package/src/components/typography/Heading.tsx +136 -0
  24. package/src/components/typography/Kbd.tsx +162 -0
  25. package/src/components/typography/Link.tsx +173 -0
  26. package/src/components/typography/Quote.tsx +71 -0
  27. package/src/components/typography/Strong.tsx +70 -0
  28. package/src/components/typography/Text.tsx +140 -0
  29. package/src/components/typography/index.ts +9 -0
  30. package/src/hooks/useResolveColor.ts +24 -0
  31. package/src/hooks/useThemeContext.ts +11 -0
  32. package/src/index.ts +63 -0
  33. package/src/theme/Theme.tsx +12 -0
  34. package/src/theme/ThemeContext.ts +4 -0
  35. package/src/theme/ThemeImpl.tsx +54 -0
  36. package/src/theme/ThemeRoot.tsx +65 -0
  37. package/src/theme/createTheme.tsx +17 -0
  38. package/src/theme/resolveGrayColor.ts +38 -0
  39. package/src/theme/theme.types.ts +95 -0
  40. package/src/tokens/colors/amber.ts +28 -0
  41. package/src/tokens/colors/blue.ts +28 -0
  42. package/src/tokens/colors/bronze.ts +28 -0
  43. package/src/tokens/colors/brown.ts +28 -0
  44. package/src/tokens/colors/crimson.ts +28 -0
  45. package/src/tokens/colors/cyan.ts +28 -0
  46. package/src/tokens/colors/gold.ts +28 -0
  47. package/src/tokens/colors/grass.ts +28 -0
  48. package/src/tokens/colors/gray.ts +28 -0
  49. package/src/tokens/colors/green.ts +28 -0
  50. package/src/tokens/colors/index.ts +36 -0
  51. package/src/tokens/colors/indigo.ts +28 -0
  52. package/src/tokens/colors/iris.ts +28 -0
  53. package/src/tokens/colors/jade.ts +28 -0
  54. package/src/tokens/colors/lime.ts +28 -0
  55. package/src/tokens/colors/mauve.ts +28 -0
  56. package/src/tokens/colors/mint.ts +28 -0
  57. package/src/tokens/colors/olive.ts +28 -0
  58. package/src/tokens/colors/orange.ts +28 -0
  59. package/src/tokens/colors/pink.ts +28 -0
  60. package/src/tokens/colors/plum.ts +28 -0
  61. package/src/tokens/colors/purple.ts +28 -0
  62. package/src/tokens/colors/red.ts +28 -0
  63. package/src/tokens/colors/ruby.ts +28 -0
  64. package/src/tokens/colors/sage.ts +28 -0
  65. package/src/tokens/colors/sand.ts +28 -0
  66. package/src/tokens/colors/sky.ts +28 -0
  67. package/src/tokens/colors/slate.ts +28 -0
  68. package/src/tokens/colors/teal.ts +28 -0
  69. package/src/tokens/colors/tomato.ts +28 -0
  70. package/src/tokens/colors/types.ts +69 -0
  71. package/src/tokens/colors/violet.ts +28 -0
  72. package/src/tokens/colors/yellow.ts +28 -0
  73. package/src/tokens/index.ts +5 -0
  74. package/src/tokens/radius.ts +56 -0
  75. package/src/tokens/scaling.ts +10 -0
  76. package/src/tokens/spacing.ts +21 -0
  77. package/src/tokens/typography.ts +60 -0
  78. package/src/utils/applyScaling.ts +6 -0
  79. package/src/utils/classicEffect.ts +46 -0
  80. package/src/utils/resolveColor.ts +69 -0
  81. package/src/utils/resolveSpace.ts +13 -0
@@ -0,0 +1,65 @@
1
+ import React from 'react'
2
+ import { useColorScheme } from 'react-native'
3
+ import { ThemeContext } from './ThemeContext'
4
+ import { resolveGrayColor } from './resolveGrayColor'
5
+ import type { ThemeProps, ThemeContextValue } from './theme.types'
6
+
7
+ export function ThemeRoot({
8
+ appearance: appearanceProp = 'inherit',
9
+ accentColor: accentColorProp = 'indigo',
10
+ grayColor: grayColorProp = 'auto',
11
+ radius: radiusProp = 'medium',
12
+ scaling: scalingProp = '100%',
13
+ fonts: fontsProp = {},
14
+ colorOverrides: colorOverridesProp = {},
15
+ children,
16
+ }: ThemeProps) {
17
+ const systemColorScheme = useColorScheme()
18
+
19
+ const [appearance, setAppearance] = React.useState<'light' | 'dark'>(() =>
20
+ appearanceProp === 'inherit'
21
+ ? systemColorScheme === 'dark' ? 'dark' : 'light'
22
+ : appearanceProp,
23
+ )
24
+ const [accentColor, setAccentColor] = React.useState(accentColorProp)
25
+ const [grayColor, setGrayColor] = React.useState(grayColorProp)
26
+ const [radius, setRadius] = React.useState(radiusProp)
27
+ const [scaling, setScaling] = React.useState(scalingProp)
28
+
29
+ React.useEffect(() => {
30
+ setAppearance(
31
+ appearanceProp === 'inherit'
32
+ ? systemColorScheme === 'dark' ? 'dark' : 'light'
33
+ : appearanceProp,
34
+ )
35
+ }, [appearanceProp, systemColorScheme])
36
+
37
+ React.useEffect(() => { setAccentColor(accentColorProp) }, [accentColorProp])
38
+ React.useEffect(() => { setGrayColor(grayColorProp) }, [grayColorProp])
39
+ React.useEffect(() => { setRadius(radiusProp) }, [radiusProp])
40
+ React.useEffect(() => { setScaling(scalingProp) }, [scalingProp])
41
+
42
+ const resolvedGrayColor = grayColor === 'auto' ? resolveGrayColor(accentColor) : grayColor
43
+
44
+ const value = React.useMemo<ThemeContextValue>(
45
+ () => ({
46
+ appearance,
47
+ accentColor,
48
+ grayColor,
49
+ resolvedGrayColor,
50
+ radius,
51
+ scaling,
52
+ fonts: fontsProp,
53
+ colorOverrides: colorOverridesProp,
54
+ onAppearanceChange: setAppearance,
55
+ onAccentColorChange: setAccentColor,
56
+ onGrayColorChange: setGrayColor,
57
+ onRadiusChange: setRadius,
58
+ onScalingChange: setScaling,
59
+ }),
60
+ [appearance, accentColor, grayColor, resolvedGrayColor, radius, scaling, fontsProp, colorOverridesProp],
61
+ )
62
+
63
+ return <ThemeContext.Provider value={value}>{children}</ThemeContext.Provider>
64
+ }
65
+ ThemeRoot.displayName = 'ThemeRoot'
@@ -0,0 +1,17 @@
1
+ import React from 'react'
2
+ import { Theme } from './Theme'
3
+ import type { ThemeProps } from './theme.types'
4
+
5
+ /**
6
+ * Factory that creates a pre-configured Theme component.
7
+ * Useful for white-label or multi-brand applications.
8
+ */
9
+ export function createTheme(
10
+ config: Omit<ThemeProps, 'children'>,
11
+ ): (props: { children: React.ReactNode }) => React.JSX.Element {
12
+ function ThemeProvider({ children }: { children: React.ReactNode }) {
13
+ return <Theme {...config}>{children}</Theme>
14
+ }
15
+ ThemeProvider.displayName = 'ThemeProvider'
16
+ return ThemeProvider
17
+ }
@@ -0,0 +1,38 @@
1
+ import type { AccentColor, GrayColor } from './theme.types'
2
+
3
+ export function resolveGrayColor(accentColor: AccentColor): GrayColor {
4
+ switch (accentColor) {
5
+ case 'tomato':
6
+ case 'red':
7
+ case 'ruby':
8
+ case 'crimson':
9
+ case 'pink':
10
+ case 'plum':
11
+ case 'purple':
12
+ case 'violet':
13
+ return 'mauve'
14
+ case 'iris':
15
+ case 'indigo':
16
+ case 'blue':
17
+ case 'sky':
18
+ case 'cyan':
19
+ return 'slate'
20
+ case 'teal':
21
+ case 'jade':
22
+ case 'mint':
23
+ case 'green':
24
+ return 'sage'
25
+ case 'grass':
26
+ case 'lime':
27
+ return 'olive'
28
+ case 'gray':
29
+ return 'gray'
30
+ case 'yellow':
31
+ case 'amber':
32
+ case 'orange':
33
+ case 'brown':
34
+ case 'gold':
35
+ case 'bronze':
36
+ return 'sand'
37
+ }
38
+ }
@@ -0,0 +1,95 @@
1
+ import type { AccentColor, GrayColor } from '../tokens/colors/types'
2
+ import type { RadiusToken } from '../tokens/radius'
3
+ import type { ScalingMode } from '../tokens/scaling'
4
+
5
+ export type { AccentColor, GrayColor, RadiusToken, ScalingMode }
6
+
7
+ export type ThemeAppearance = 'inherit' | 'light' | 'dark'
8
+
9
+ export type ThemeColor =
10
+ | `accent-${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12}`
11
+ | `accent-a${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12}`
12
+ | `gray-${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12}`
13
+ | `gray-a${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12}`
14
+ | `${AccentColor}-${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12}`
15
+ | (string & {})
16
+
17
+ export interface ThemeFonts {
18
+ /** fontWeight 300 — falls back to regular */
19
+ light?: string
20
+ /** fontWeight 400 — base body font */
21
+ regular?: string
22
+ /** fontWeight 500 — falls back to regular */
23
+ medium?: string
24
+ /** fontWeight 700 — falls back to regular */
25
+ bold?: string
26
+ /** Heading component — falls back to bold → regular */
27
+ heading?: string
28
+ /** Code / Kbd — monospace font, falls back to system monospace */
29
+ code?: string
30
+ }
31
+
32
+ /**
33
+ * Partial override of individual color steps within a scale.
34
+ * Only the steps you specify are overridden; the rest fall back to the built-in scale.
35
+ */
36
+ export type ColorScaleOverride = Partial<
37
+ Record<
38
+ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
39
+ | 'a1' | 'a2' | 'a3' | 'a4' | 'a5' | 'a6' | 'a7' | 'a8' | 'a9' | 'a10' | 'a11' | 'a12'
40
+ | 'contrast' | 'surface',
41
+ string
42
+ >
43
+ >
44
+
45
+ /**
46
+ * Override any color scale with light/dark variants — like overriding CSS custom
47
+ * properties in Radix web (e.g. `--red-9: #custom`).
48
+ *
49
+ * @example
50
+ * colorOverrides={{
51
+ * red: {
52
+ * light: { 9: '#e54666', 10: '#dc3b5d' },
53
+ * dark: { 9: '#e5484d', 10: '#ec5d5e' },
54
+ * },
55
+ * }}
56
+ */
57
+ export type ColorOverrides = Partial<
58
+ Record<AccentColor | GrayColor, { light?: ColorScaleOverride; dark?: ColorScaleOverride }>
59
+ >
60
+
61
+ export interface ThemeChangeHandlers {
62
+ onAppearanceChange: (value: 'light' | 'dark') => void
63
+ onAccentColorChange: (value: AccentColor) => void
64
+ onGrayColorChange: (value: GrayColor | 'auto') => void
65
+ onRadiusChange: (value: RadiusToken) => void
66
+ onScalingChange: (value: ScalingMode) => void
67
+ }
68
+
69
+ export interface ThemeContextValue extends ThemeChangeHandlers {
70
+ /** Resolved appearance — always 'light' | 'dark', never 'inherit' */
71
+ appearance: 'light' | 'dark'
72
+ accentColor: AccentColor
73
+ grayColor: GrayColor | 'auto'
74
+ /** Resolved gray when grayColor is 'auto' */
75
+ resolvedGrayColor: GrayColor
76
+ radius: RadiusToken
77
+ scaling: ScalingMode
78
+ /** RN-only: custom font family names */
79
+ fonts: ThemeFonts
80
+ /** RN-only: override individual color steps */
81
+ colorOverrides: ColorOverrides
82
+ }
83
+
84
+ export interface ThemeProps {
85
+ appearance?: ThemeAppearance
86
+ accentColor?: AccentColor
87
+ grayColor?: GrayColor | 'auto'
88
+ radius?: RadiusToken
89
+ scaling?: ScalingMode
90
+ /** RN-only */
91
+ fonts?: ThemeFonts
92
+ /** RN-only */
93
+ colorOverrides?: ColorOverrides
94
+ children: React.ReactNode
95
+ }
@@ -0,0 +1,28 @@
1
+ // WARNING: Auto-generated — do not edit manually
2
+ // Source: @radix-ui/colors (exact hex values, unmodified)
3
+ // To update: yarn generate:colors
4
+
5
+ import type { ColorScaleWithModes } from './types'
6
+
7
+ export const amber: ColorScaleWithModes = {
8
+ light: {
9
+ 1: '#fefdfb', 2: '#fefbe9', 3: '#fff7c2', 4: '#ffee9c',
10
+ 5: '#fbe577', 6: '#f3d673', 7: '#e9c162', 8: '#e2a336',
11
+ 9: '#ffc53d', 10: '#ffba18', 11: '#ab6400', 12: '#4f3422',
12
+ a1: '#c0800004', a2: '#f4d10016', a3: '#ffde003d', a4: '#ffd40063',
13
+ a5: '#f8cf0088', a6: '#eab5008c', a7: '#dc9b009d', a8: '#da8a00c9',
14
+ a9: '#ffb300c2', a10: '#ffb300e7', a11: '#ab6400', a12: '#341500dd',
15
+ contrast: '#21201c', surface: '#fefae4cc',
16
+ indicator: '#ffc53d', track: '#ffc53d',
17
+ },
18
+ dark: {
19
+ 1: '#16120c', 2: '#1d180f', 3: '#302008', 4: '#3f2700',
20
+ 5: '#4d3000', 6: '#5c3d05', 7: '#714f19', 8: '#8f6424',
21
+ 9: '#ffc53d', 10: '#ffd60a', 11: '#ffca16', 12: '#ffe7b3',
22
+ a1: '#e63c0006', a2: '#fd9b000d', a3: '#fa820022', a4: '#fc820032',
23
+ a5: '#fd8b0041', a6: '#fd9b0051', a7: '#ffab2567', a8: '#ffae3587',
24
+ a9: '#ffc53d', a10: '#ffd60a', a11: '#ffca16', a12: '#ffe7b3',
25
+ contrast: '#21201c', surface: '#271f1380',
26
+ indicator: '#ffc53d', track: '#ffc53d',
27
+ },
28
+ }
@@ -0,0 +1,28 @@
1
+ // WARNING: Auto-generated — do not edit manually
2
+ // Source: @radix-ui/colors (exact hex values, unmodified)
3
+ // To update: yarn generate:colors
4
+
5
+ import type { ColorScaleWithModes } from './types'
6
+
7
+ export const blue: ColorScaleWithModes = {
8
+ light: {
9
+ 1: '#fbfdff', 2: '#f4faff', 3: '#e6f4fe', 4: '#d5efff',
10
+ 5: '#c2e5ff', 6: '#acd8fc', 7: '#8ec8f6', 8: '#5eb1ef',
11
+ 9: '#0090ff', 10: '#0588f0', 11: '#0d74ce', 12: '#113264',
12
+ a1: '#0080ff04', a2: '#008cff0b', a3: '#008ff519', a4: '#009eff2a',
13
+ a5: '#0093ff3d', a6: '#0088f653', a7: '#0083eb71', a8: '#0084e6a1',
14
+ a9: '#0090ff', a10: '#0086f0fa', a11: '#006dcbf2', a12: '#002359ee',
15
+ contrast: '#ffffff', surface: '#f1f9ffcc',
16
+ indicator: '#0090ff', track: '#0090ff',
17
+ },
18
+ dark: {
19
+ 1: '#0d1520', 2: '#111927', 3: '#0d2847', 4: '#003362',
20
+ 5: '#004074', 6: '#104d87', 7: '#205d9e', 8: '#2870bd',
21
+ 9: '#0090ff', 10: '#3b9eff', 11: '#70b8ff', 12: '#c2e6ff',
22
+ a1: '#004df211', a2: '#1166fb18', a3: '#0077ff3a', a4: '#0075ff57',
23
+ a5: '#0081fd6b', a6: '#0f89fd7f', a7: '#2a91fe98', a8: '#3094feb9',
24
+ a9: '#0090ff', a10: '#3b9eff', a11: '#70b8ff', a12: '#c2e6ff',
25
+ contrast: '#ffffff', surface: '#11213d80',
26
+ indicator: '#0090ff', track: '#0090ff',
27
+ },
28
+ }
@@ -0,0 +1,28 @@
1
+ // WARNING: Auto-generated — do not edit manually
2
+ // Source: @radix-ui/colors (exact hex values, unmodified)
3
+ // To update: yarn generate:colors
4
+
5
+ import type { ColorScaleWithModes } from './types'
6
+
7
+ export const bronze: ColorScaleWithModes = {
8
+ light: {
9
+ 1: '#fdfcfc', 2: '#fdf7f5', 3: '#f6edea', 4: '#efe4df',
10
+ 5: '#e7d9d3', 6: '#dfcdc5', 7: '#d3bcb3', 8: '#c2a499',
11
+ 9: '#a18072', 10: '#957468', 11: '#7d5e54', 12: '#43302b',
12
+ a1: '#55000003', a2: '#cc33000a', a3: '#92250015', a4: '#80280020',
13
+ a5: '#7423002c', a6: '#7324003a', a7: '#6c1f004c', a8: '#671c0066',
14
+ a9: '#551a008d', a10: '#4c150097', a11: '#3d0f00ab', a12: '#1d0600d4',
15
+ contrast: '#ffffff', surface: '#fdf5f3cc',
16
+ indicator: '#a18072', track: '#a18072',
17
+ },
18
+ dark: {
19
+ 1: '#141110', 2: '#1c1917', 3: '#262220', 4: '#302a27',
20
+ 5: '#3b3330', 6: '#493e3a', 7: '#5a4c47', 8: '#6f5f58',
21
+ 9: '#a18072', 10: '#ae8c7e', 11: '#d4b3a5', 12: '#ede0d9',
22
+ a1: '#d1110004', a2: '#fbbc910c', a3: '#faceb817', a4: '#facdb622',
23
+ a5: '#ffd2c12d', a6: '#ffd1c03c', a7: '#fdd0c04f', a8: '#ffd6c565',
24
+ a9: '#fec7b09b', a10: '#fecab5a9', a11: '#ffd7c6d1', a12: '#fff1e9ec',
25
+ contrast: '#ffffff', surface: '#27211d80',
26
+ indicator: '#a18072', track: '#a18072',
27
+ },
28
+ }
@@ -0,0 +1,28 @@
1
+ // WARNING: Auto-generated — do not edit manually
2
+ // Source: @radix-ui/colors (exact hex values, unmodified)
3
+ // To update: yarn generate:colors
4
+
5
+ import type { ColorScaleWithModes } from './types'
6
+
7
+ export const brown: ColorScaleWithModes = {
8
+ light: {
9
+ 1: '#fefdfc', 2: '#fcf9f6', 3: '#f6eee7', 4: '#f0e4d9',
10
+ 5: '#ebdaca', 6: '#e4cdb7', 7: '#dcbc9f', 8: '#cea37e',
11
+ 9: '#ad7f58', 10: '#a07553', 11: '#815e46', 12: '#3e332e',
12
+ a1: '#aa550003', a2: '#aa550009', a3: '#a04b0018', a4: '#9b4a0026',
13
+ a5: '#9f4d0035', a6: '#a04e0048', a7: '#a34e0060', a8: '#9f4a0081',
14
+ a9: '#823c00a7', a10: '#723300ac', a11: '#522100b9', a12: '#140600d1',
15
+ contrast: '#ffffff', surface: '#fbf8f4cc',
16
+ indicator: '#ad7f58', track: '#ad7f58',
17
+ },
18
+ dark: {
19
+ 1: '#12110f', 2: '#1c1816', 3: '#28211d', 4: '#322922',
20
+ 5: '#3e3128', 6: '#4d3c2f', 7: '#614a39', 8: '#7c5f46',
21
+ 9: '#ad7f58', 10: '#b88c67', 11: '#dbb594', 12: '#f2e1ca',
22
+ a1: '#91110002', a2: '#fba67c0c', a3: '#fcb58c19', a4: '#fbbb8a24',
23
+ a5: '#fcb88931', a6: '#fdba8741', a7: '#ffbb8856', a8: '#ffbe8773',
24
+ a9: '#feb87da8', a10: '#ffc18cb3', a11: '#fed1aad9', a12: '#feecd4f2',
25
+ contrast: '#ffffff', surface: '#271f1b80',
26
+ indicator: '#ad7f58', track: '#ad7f58',
27
+ },
28
+ }
@@ -0,0 +1,28 @@
1
+ // WARNING: Auto-generated — do not edit manually
2
+ // Source: @radix-ui/colors (exact hex values, unmodified)
3
+ // To update: yarn generate:colors
4
+
5
+ import type { ColorScaleWithModes } from './types'
6
+
7
+ export const crimson: ColorScaleWithModes = {
8
+ light: {
9
+ 1: '#fffcfd', 2: '#fef7f9', 3: '#ffe9f0', 4: '#fedce7',
10
+ 5: '#facedd', 6: '#f3bed1', 7: '#eaacc3', 8: '#e093b2',
11
+ 9: '#e93d82', 10: '#df3478', 11: '#cb1d63', 12: '#621639',
12
+ a1: '#ff005503', a2: '#e0004008', a3: '#ff005216', a4: '#f8005123',
13
+ a5: '#e5004f31', a6: '#d0004b41', a7: '#bf004753', a8: '#b6004a6c',
14
+ a9: '#e2005bc2', a10: '#d70056cb', a11: '#c4004fe2', a12: '#530026e9',
15
+ contrast: '#ffffff', surface: '#fef5f8cc',
16
+ indicator: '#e93d82', track: '#e93d82',
17
+ },
18
+ dark: {
19
+ 1: '#191114', 2: '#201318', 3: '#381525', 4: '#4d122f',
20
+ 5: '#5c1839', 6: '#6d2545', 7: '#873356', 8: '#b0436e',
21
+ 9: '#e93d82', 10: '#ee518a', 11: '#ff92ad', 12: '#fdd3e8',
22
+ a1: '#f4126709', a2: '#f22f7a11', a3: '#fe2a8b2a', a4: '#fd158741',
23
+ a5: '#fd278f51', a6: '#fe459763', a7: '#fd559b7f', a8: '#fe5b9bab',
24
+ a9: '#fe418de8', a10: '#ff5693ed', a11: '#ff92ad', a12: '#ffd5eafd',
25
+ contrast: '#ffffff', surface: '#2f151f80',
26
+ indicator: '#e93d82', track: '#e93d82',
27
+ },
28
+ }
@@ -0,0 +1,28 @@
1
+ // WARNING: Auto-generated — do not edit manually
2
+ // Source: @radix-ui/colors (exact hex values, unmodified)
3
+ // To update: yarn generate:colors
4
+
5
+ import type { ColorScaleWithModes } from './types'
6
+
7
+ export const cyan: ColorScaleWithModes = {
8
+ light: {
9
+ 1: '#fafdfe', 2: '#f2fafb', 3: '#def7f9', 4: '#caf1f6',
10
+ 5: '#b5e9f0', 6: '#9ddde7', 7: '#7dcedc', 8: '#3db9cf',
11
+ 9: '#00a2c7', 10: '#0797b9', 11: '#107d98', 12: '#0d3c48',
12
+ a1: '#0099cc05', a2: '#009db10d', a3: '#00c2d121', a4: '#00bcd435',
13
+ a5: '#01b4cc4a', a6: '#00a7c162', a7: '#009fbb82', a8: '#00a3c0c2',
14
+ a9: '#00a2c7', a10: '#0094b7f8', a11: '#007491ef', a12: '#00323ef2',
15
+ contrast: '#ffffff', surface: '#eff9facc',
16
+ indicator: '#00a2c7', track: '#00a2c7',
17
+ },
18
+ dark: {
19
+ 1: '#0b161a', 2: '#101b20', 3: '#082c36', 4: '#003848',
20
+ 5: '#004558', 6: '#045468', 7: '#12677e', 8: '#11809c',
21
+ 9: '#00a2c7', 10: '#23afd0', 11: '#4ccce6', 12: '#b6ecf7',
22
+ a1: '#0091f70a', a2: '#02a7f211', a3: '#00befd28', a4: '#00baff3b',
23
+ a5: '#00befd4d', a6: '#00c7fd5e', a7: '#14cdff75', a8: '#11cfff95',
24
+ a9: '#00cfffc3', a10: '#28d6ffcd', a11: '#52e1fee5', a12: '#bbf3fef7',
25
+ contrast: '#ffffff', surface: '#11252d80',
26
+ indicator: '#00a2c7', track: '#00a2c7',
27
+ },
28
+ }
@@ -0,0 +1,28 @@
1
+ // WARNING: Auto-generated — do not edit manually
2
+ // Source: @radix-ui/colors (exact hex values, unmodified)
3
+ // To update: yarn generate:colors
4
+
5
+ import type { ColorScaleWithModes } from './types'
6
+
7
+ export const gold: ColorScaleWithModes = {
8
+ light: {
9
+ 1: '#fdfdfc', 2: '#faf9f2', 3: '#f2f0e7', 4: '#eae6db',
10
+ 5: '#e1dccf', 6: '#d8d0bf', 7: '#cbc0aa', 8: '#b9a88d',
11
+ 9: '#978365', 10: '#8c7a5e', 11: '#71624b', 12: '#3b352b',
12
+ a1: '#55550003', a2: '#9d8a000d', a3: '#75600018', a4: '#6b4e0024',
13
+ a5: '#60460030', a6: '#64440040', a7: '#63420055', a8: '#633d0072',
14
+ a9: '#5332009a', a10: '#492d00a1', a11: '#362100b4', a12: '#130c00d4',
15
+ contrast: '#ffffff', surface: '#f9f8efcc',
16
+ indicator: '#978365', track: '#978365',
17
+ },
18
+ dark: {
19
+ 1: '#121211', 2: '#1b1a17', 3: '#24231f', 4: '#2d2b26',
20
+ 5: '#38352e', 6: '#444039', 7: '#544f46', 8: '#696256',
21
+ 9: '#978365', 10: '#a39073', 11: '#cbb99f', 12: '#e8e2d9',
22
+ a1: '#91911102', a2: '#f9e29d0b', a3: '#f8ecbb15', a4: '#ffeec41e',
23
+ a5: '#feecc22a', a6: '#feebcb37', a7: '#ffedcd48', a8: '#fdeaca5f',
24
+ a9: '#ffdba690', a10: '#fedfb09d', a11: '#fee7c6c8', a12: '#fef7ede7',
25
+ contrast: '#ffffff', surface: '#25231d80',
26
+ indicator: '#978365', track: '#978365',
27
+ },
28
+ }
@@ -0,0 +1,28 @@
1
+ // WARNING: Auto-generated — do not edit manually
2
+ // Source: @radix-ui/colors (exact hex values, unmodified)
3
+ // To update: yarn generate:colors
4
+
5
+ import type { ColorScaleWithModes } from './types'
6
+
7
+ export const grass: ColorScaleWithModes = {
8
+ light: {
9
+ 1: '#fbfefb', 2: '#f5fbf5', 3: '#e9f6e9', 4: '#daf1db',
10
+ 5: '#c9e8ca', 6: '#b2ddb5', 7: '#94ce9a', 8: '#65ba74',
11
+ 9: '#46a758', 10: '#3e9b4f', 11: '#2a7e3b', 12: '#203c25',
12
+ a1: '#00c00004', a2: '#0099000a', a3: '#00970016', a4: '#009f0725',
13
+ a5: '#00930536', a6: '#008f0a4d', a7: '#018b0f6b', a8: '#008d199a',
14
+ a9: '#008619b9', a10: '#007b17c1', a11: '#006514d5', a12: '#002006df',
15
+ contrast: '#ffffff', surface: '#f3faf3cc',
16
+ indicator: '#46a758', track: '#46a758',
17
+ },
18
+ dark: {
19
+ 1: '#0e1511', 2: '#141a15', 3: '#1b2a1e', 4: '#1d3a24',
20
+ 5: '#25482d', 6: '#2d5736', 7: '#366740', 8: '#3e7949',
21
+ 9: '#46a758', 10: '#53b365', 11: '#71d083', 12: '#c2f0c2',
22
+ a1: '#00de1205', a2: '#5ef7780a', a3: '#70fe8c1b', a4: '#57ff802c',
23
+ a5: '#68ff8b3b', a6: '#71ff8f4b', a7: '#77fd925d', a8: '#77fd9070',
24
+ a9: '#65ff82a1', a10: '#72ff8dae', a11: '#89ff9fcd', a12: '#ceffceef',
25
+ contrast: '#ffffff', surface: '#19231b80',
26
+ indicator: '#46a758', track: '#46a758',
27
+ },
28
+ }
@@ -0,0 +1,28 @@
1
+ // WARNING: Auto-generated — do not edit manually
2
+ // Source: @radix-ui/colors (exact hex values, unmodified)
3
+ // To update: yarn generate:colors
4
+
5
+ import type { ColorScaleWithModes } from './types'
6
+
7
+ export const gray: ColorScaleWithModes = {
8
+ light: {
9
+ 1: '#fcfcfc', 2: '#f9f9f9', 3: '#f0f0f0', 4: '#e8e8e8',
10
+ 5: '#e0e0e0', 6: '#d9d9d9', 7: '#cecece', 8: '#bbbbbb',
11
+ 9: '#8d8d8d', 10: '#838383', 11: '#646464', 12: '#202020',
12
+ a1: '#00000003', a2: '#00000006', a3: '#0000000f', a4: '#00000017',
13
+ a5: '#0000001f', a6: '#00000026', a7: '#00000031', a8: '#00000044',
14
+ a9: '#00000072', a10: '#0000007c', a11: '#0000009b', a12: '#000000df',
15
+ contrast: '#ffffff', surface: '#ffffffcc',
16
+ indicator: '#8d8d8d', track: '#8d8d8d',
17
+ },
18
+ dark: {
19
+ 1: '#111111', 2: '#191919', 3: '#222222', 4: '#2a2a2a',
20
+ 5: '#313131', 6: '#3a3a3a', 7: '#484848', 8: '#606060',
21
+ 9: '#6e6e6e', 10: '#7b7b7b', 11: '#b4b4b4', 12: '#eeeeee',
22
+ a1: '#00000000', a2: '#ffffff09', a3: '#ffffff12', a4: '#ffffff1b',
23
+ a5: '#ffffff22', a6: '#ffffff2c', a7: '#ffffff3b', a8: '#ffffff55',
24
+ a9: '#ffffff64', a10: '#ffffff72', a11: '#ffffffaf', a12: '#ffffffed',
25
+ contrast: '#ffffff', surface: '#21212180',
26
+ indicator: '#6e6e6e', track: '#6e6e6e',
27
+ },
28
+ }
@@ -0,0 +1,28 @@
1
+ // WARNING: Auto-generated — do not edit manually
2
+ // Source: @radix-ui/colors (exact hex values, unmodified)
3
+ // To update: yarn generate:colors
4
+
5
+ import type { ColorScaleWithModes } from './types'
6
+
7
+ export const green: ColorScaleWithModes = {
8
+ light: {
9
+ 1: '#fbfefc', 2: '#f4fbf6', 3: '#e6f6eb', 4: '#d6f1df',
10
+ 5: '#c4e8d1', 6: '#adddc0', 7: '#8eceaa', 8: '#5bb98b',
11
+ 9: '#30a46c', 10: '#2b9a66', 11: '#218358', 12: '#193b2d',
12
+ a1: '#00c04004', a2: '#00a32f0b', a3: '#00a43319', a4: '#00a83829',
13
+ a5: '#019c393b', a6: '#00963c52', a7: '#00914071', a8: '#00924ba4',
14
+ a9: '#008f4acf', a10: '#008647d4', a11: '#00713fde', a12: '#002616e6',
15
+ contrast: '#ffffff', surface: '#f1faf4cc',
16
+ indicator: '#30a46c', track: '#30a46c',
17
+ },
18
+ dark: {
19
+ 1: '#0e1512', 2: '#121b17', 3: '#132d21', 4: '#113b29',
20
+ 5: '#174933', 6: '#20573e', 7: '#28684a', 8: '#2f7c57',
21
+ 9: '#30a46c', 10: '#33b074', 11: '#3dd68c', 12: '#b1f1cb',
22
+ a1: '#00de4505', a2: '#29f99d0b', a3: '#22ff991e', a4: '#11ff992d',
23
+ a5: '#2bffa23c', a6: '#44ffaa4b', a7: '#50fdac5e', a8: '#54ffad73',
24
+ a9: '#44ffa49e', a10: '#43fea4ab', a11: '#46fea5d4', a12: '#bbffd7f0',
25
+ contrast: '#ffffff', surface: '#15251d80',
26
+ indicator: '#30a46c', track: '#30a46c',
27
+ },
28
+ }
@@ -0,0 +1,36 @@
1
+ // WARNING: Auto-generated — do not edit manually
2
+ // To update: yarn generate:colors
3
+
4
+ export type { ColorScale, ColorScaleWithModes, AccentColor, GrayColor } from './types'
5
+
6
+ export { tomato } from './tomato'
7
+ export { red } from './red'
8
+ export { ruby } from './ruby'
9
+ export { crimson } from './crimson'
10
+ export { pink } from './pink'
11
+ export { plum } from './plum'
12
+ export { purple } from './purple'
13
+ export { violet } from './violet'
14
+ export { iris } from './iris'
15
+ export { indigo } from './indigo'
16
+ export { blue } from './blue'
17
+ export { cyan } from './cyan'
18
+ export { teal } from './teal'
19
+ export { jade } from './jade'
20
+ export { green } from './green'
21
+ export { grass } from './grass'
22
+ export { bronze } from './bronze'
23
+ export { gold } from './gold'
24
+ export { brown } from './brown'
25
+ export { orange } from './orange'
26
+ export { amber } from './amber'
27
+ export { yellow } from './yellow'
28
+ export { lime } from './lime'
29
+ export { mint } from './mint'
30
+ export { sky } from './sky'
31
+ export { gray } from './gray'
32
+ export { mauve } from './mauve'
33
+ export { slate } from './slate'
34
+ export { sage } from './sage'
35
+ export { olive } from './olive'
36
+ export { sand } from './sand'
@@ -0,0 +1,28 @@
1
+ // WARNING: Auto-generated — do not edit manually
2
+ // Source: @radix-ui/colors (exact hex values, unmodified)
3
+ // To update: yarn generate:colors
4
+
5
+ import type { ColorScaleWithModes } from './types'
6
+
7
+ export const indigo: ColorScaleWithModes = {
8
+ light: {
9
+ 1: '#fdfdfe', 2: '#f7f9ff', 3: '#edf2fe', 4: '#e1e9ff',
10
+ 5: '#d2deff', 6: '#c1d0ff', 7: '#abbdf9', 8: '#8da4ef',
11
+ 9: '#3e63dd', 10: '#3358d4', 11: '#3a5bc7', 12: '#1f2d5c',
12
+ a1: '#00008002', a2: '#0040ff08', a3: '#0047f112', a4: '#0044ff1e',
13
+ a5: '#0044ff2d', a6: '#003eff3e', a7: '#0037ed54', a8: '#0034dc72',
14
+ a9: '#0031d2c1', a10: '#002ec9cc', a11: '#002bb7c5', a12: '#001046e0',
15
+ contrast: '#ffffff', surface: '#f5f8ffcc',
16
+ indicator: '#3e63dd', track: '#3e63dd',
17
+ },
18
+ dark: {
19
+ 1: '#11131f', 2: '#141726', 3: '#182449', 4: '#1d2e62',
20
+ 5: '#253974', 6: '#304384', 7: '#3a4f97', 8: '#435db1',
21
+ 9: '#3e63dd', 10: '#5472e4', 11: '#9eb1ff', 12: '#d6e1ff',
22
+ a1: '#1133ff0f', a2: '#3354fa17', a3: '#2f62ff3c', a4: '#3566ff57',
23
+ a5: '#4171fd6b', a6: '#5178fd7c', a7: '#5a7fff90', a8: '#5b81feac',
24
+ a9: '#4671ffdb', a10: '#5c7efee3', a11: '#9eb1ff', a12: '#d6e1ff',
25
+ contrast: '#ffffff', surface: '#171d3b80',
26
+ indicator: '#3e63dd', track: '#3e63dd',
27
+ },
28
+ }
@@ -0,0 +1,28 @@
1
+ // WARNING: Auto-generated — do not edit manually
2
+ // Source: @radix-ui/colors (exact hex values, unmodified)
3
+ // To update: yarn generate:colors
4
+
5
+ import type { ColorScaleWithModes } from './types'
6
+
7
+ export const iris: ColorScaleWithModes = {
8
+ light: {
9
+ 1: '#fdfdff', 2: '#f8f8ff', 3: '#f0f1fe', 4: '#e6e7ff',
10
+ 5: '#dadcff', 6: '#cbcdff', 7: '#b8baf8', 8: '#9b9ef0',
11
+ 9: '#5b5bd6', 10: '#5151cd', 11: '#5753c6', 12: '#272962',
12
+ a1: '#0000ff02', a2: '#0000ff07', a3: '#0011ee0f', a4: '#000bff19',
13
+ a5: '#000eff25', a6: '#000aff34', a7: '#0008e647', a8: '#0008d964',
14
+ a9: '#0000c0a4', a10: '#0000b6ae', a11: '#0600abac', a12: '#000246d8',
15
+ contrast: '#ffffff', surface: '#f6f6ffcc',
16
+ indicator: '#5b5bd6', track: '#5b5bd6',
17
+ },
18
+ dark: {
19
+ 1: '#13131e', 2: '#171625', 3: '#202248', 4: '#262a65',
20
+ 5: '#303374', 6: '#3d3e82', 7: '#4a4a95', 8: '#5958b1',
21
+ 9: '#5b5bd6', 10: '#6e6ade', 11: '#b1a9ff', 12: '#e0dffe',
22
+ a1: '#3636fe0e', a2: '#564bf916', a3: '#525bff3b', a4: '#4d58ff5a',
23
+ a5: '#5b62fd6b', a6: '#6d6ffd7a', a7: '#7777fe8e', a8: '#7b7afeac',
24
+ a9: '#6a6afed4', a10: '#7d79ffdc', a11: '#b1a9ff', a12: '#e1e0fffe',
25
+ contrast: '#ffffff', surface: '#1d1b3980',
26
+ indicator: '#5b5bd6', track: '#5b5bd6',
27
+ },
28
+ }
@@ -0,0 +1,28 @@
1
+ // WARNING: Auto-generated — do not edit manually
2
+ // Source: @radix-ui/colors (exact hex values, unmodified)
3
+ // To update: yarn generate:colors
4
+
5
+ import type { ColorScaleWithModes } from './types'
6
+
7
+ export const jade: ColorScaleWithModes = {
8
+ light: {
9
+ 1: '#fbfefd', 2: '#f4fbf7', 3: '#e6f7ed', 4: '#d6f1e3',
10
+ 5: '#c3e9d7', 6: '#acdec8', 7: '#8bceb6', 8: '#56ba9f',
11
+ 9: '#29a383', 10: '#26997b', 11: '#208368', 12: '#1d3b31',
12
+ a1: '#00c08004', a2: '#00a3460b', a3: '#00ae4819', a4: '#00a85129',
13
+ a5: '#00a2553c', a6: '#009a5753', a7: '#00945f74', a8: '#00976ea9',
14
+ a9: '#00916bd6', a10: '#008764d9', a11: '#007152df', a12: '#002217e2',
15
+ contrast: '#ffffff', surface: '#f1faf5cc',
16
+ indicator: '#29a383', track: '#29a383',
17
+ },
18
+ dark: {
19
+ 1: '#0d1512', 2: '#121c18', 3: '#0f2e22', 4: '#0b3b2c',
20
+ 5: '#114837', 6: '#1b5745', 7: '#246854', 8: '#2a7e68',
21
+ 9: '#29a383', 10: '#27b08b', 11: '#1fd8a4', 12: '#adf0d4',
22
+ a1: '#00de4505', a2: '#27fba60c', a3: '#02f99920', a4: '#00ffaa2d',
23
+ a5: '#11ffb63b', a6: '#34ffc24b', a7: '#45fdc75e', a8: '#48ffcf75',
24
+ a9: '#38feca9d', a10: '#31fec7ab', a11: '#21fec0d6', a12: '#b8ffe1ef',
25
+ contrast: '#ffffff', surface: '#13271f80',
26
+ indicator: '#29a383', track: '#29a383',
27
+ },
28
+ }