feat(system): add mention and pin to colors

This commit is contained in:
Pavel Prichodko 2022-03-31 14:53:42 +02:00
parent ba359a5cc7
commit aa0dd52252
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
1 changed files with 106 additions and 79 deletions

View File

@ -5,87 +5,105 @@ import type { CSS as StitchesCSS } from '@stitches/react'
export type { VariantProps } from '@stitches/react' export type { VariantProps } from '@stitches/react'
export type CSS = StitchesCSS<typeof config> export type CSS = StitchesCSS<typeof config>
export const { styled, css, keyframes, theme, createTheme, config } = export const {
createStitches({ styled,
prefix: 'status', css,
theme: { keyframes,
fonts: { theme,
sans: 'Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"', createTheme,
mono: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace', config,
}, getCssText,
fontWeights: { } = createStitches({
400: '400', // prefix: 'status',
500: '500', theme: {
600: '600', fonts: {
}, sans: 'Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
colors: { mono: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
white: 'rgb(255, 255, 255)',
black: 'rgb(0, 0, 0)',
current: 'currentColor',
transparent: 'transparent',
'primary-1': 'rgba(67, 96, 223, 1)',
'primary-2': 'rgba(67, 96, 223, 0.2)',
'primary-3': 'rgba(67, 96, 223, 0.1)',
'gray-1': 'rgba(147, 155, 161, 1)',
'gray-2': 'rgba(238, 242, 245, 1)',
'gray-3': 'rgba(233, 237, 241, 1)',
'gray-4': 'rgba(246, 248, 250, 1)',
'gray-5': 'rgba(240, 242, 245, 1)',
'danger-1': 'rgba(255, 45, 85, 1)',
'danger-2': 'rgba(255, 45, 85, 0.2)',
'danger-3': 'rgba(255, 45, 85, 0.1)',
'success-1': 'rgba(78, 188, 96, 1)',
'success-2': 'rgba(78, 188, 96, 0.1)',
'accent-1': 'rgba(0, 0, 0, 1)',
'accent-2': 'rgba(0, 0, 0, 0.9)',
'accent-3': 'rgba(0, 0, 0, 0.8)',
'accent-4': 'rgba(0, 0, 0, 0.7)',
'accent-5': 'rgba(0, 0, 0, 0.4)',
'accent-6': 'rgba(0, 0, 0, 0.2)',
'accent-7': 'rgba(0, 0, 0, 0.1)',
'accent-8': 'rgba(0, 0, 0, 0.05)',
'accent-9': 'rgba(255, 255, 255, 0.4)',
'accent-10': 'rgba(255, 255, 255, 0.7)',
'accent-11': 'rgba(255, 255, 255, 1)',
blue: 'rgba(41, 70, 196, 1)',
purple: 'rgba(136, 122, 249, 1)',
cyan: 'rgba(81, 208, 240, 1)',
violet: 'rgba(211, 126, 244, 1)',
grep: 'rgba(250, 101, 101, 1)',
yellow: 'rgba(255, 202, 15, 1)',
grass: 'rgba(124, 218, 0, 1)',
moss: 'rgba(38, 166, 154, 1)',
vintage: 'rgba(139, 49, 49, 1)',
kaki: 'rgba(155, 131, 47, 1)',
},
space: {
1: '4px',
2: '8px',
3: '16px',
4: '20px',
5: '24px',
6: '32px',
7: '48px',
8: '64px',
9: '80px',
},
radii: {
8: '8px',
full: '100%',
},
}, },
media: { fontWeights: {
medium: '(min-width: 500px)', 400: '400',
large: '(min-width: 736px)', 500: '500',
motion: '(prefers-reduced-motion: no-preference)', 600: '600',
}, },
}) colors: {
white: 'rgb(255, 255, 255)',
black: 'rgb(0, 0, 0)',
current: 'currentColor',
transparent: 'transparent',
'primary-1': 'rgba(67, 96, 223, 1)',
'primary-2': 'rgba(67, 96, 223, 0.2)',
'primary-3': 'rgba(67, 96, 223, 0.1)',
'gray-1': 'rgba(147, 155, 161, 1)',
'gray-2': 'rgba(238, 242, 245, 1)',
'gray-3': 'rgba(233, 237, 241, 1)',
'gray-4': 'rgba(246, 248, 250, 1)',
'gray-5': 'rgba(240, 242, 245, 1)',
'danger-1': 'rgba(255, 45, 85, 1)',
'danger-2': 'rgba(255, 45, 85, 0.2)',
'danger-3': 'rgba(255, 45, 85, 0.1)',
'success-1': 'rgba(78, 188, 96, 1)',
'success-2': 'rgba(78, 188, 96, 0.1)',
'mention-1': 'rgba(13, 164, 201, 1)',
'mention-2': 'rgba(7, 188, 233, 0.3)',
'mention-3': 'rgba(7, 188, 233, 0.2)',
'mention-4': 'rgba(7, 188, 233, 0.1)',
'pin-1': 'rgba(254, 143, 89, 1)',
'pin-2': 'rgba(255, 159, 15, 0.2)',
'pin-3': 'rgba(255, 159, 15, 0.1)',
'accent-1': 'rgba(0, 0, 0, 1)',
'accent-2': 'rgba(0, 0, 0, 0.9)',
'accent-3': 'rgba(0, 0, 0, 0.8)',
'accent-4': 'rgba(0, 0, 0, 0.7)',
'accent-5': 'rgba(0, 0, 0, 0.4)',
'accent-6': 'rgba(0, 0, 0, 0.2)',
'accent-7': 'rgba(0, 0, 0, 0.1)',
'accent-8': 'rgba(0, 0, 0, 0.05)',
'accent-9': 'rgba(255, 255, 255, 0.4)',
'accent-10': 'rgba(255, 255, 255, 0.7)',
'accent-11': 'rgba(255, 255, 255, 1)',
blue: 'rgba(41, 70, 196, 1)',
purple: 'rgba(136, 122, 249, 1)',
cyan: 'rgba(81, 208, 240, 1)',
violet: 'rgba(211, 126, 244, 1)',
grep: 'rgba(250, 101, 101, 1)',
yellow: 'rgba(255, 202, 15, 1)',
grass: 'rgba(124, 218, 0, 1)',
moss: 'rgba(38, 166, 154, 1)',
vintage: 'rgba(139, 49, 49, 1)',
kaki: 'rgba(155, 131, 47, 1)',
},
space: {
1: '4px',
2: '8px',
3: '16px',
4: '20px',
5: '24px',
6: '32px',
7: '48px',
8: '64px',
9: '80px',
},
radii: {
1: '4px',
2: '8px',
8: '8px',
full: '100%',
},
},
media: {
medium: '(min-width: 500px)',
large: '(min-width: 736px)',
motion: '(prefers-reduced-motion: no-preference)',
},
})
export const darkTheme = createTheme({ export const darkTheme = createTheme({
colors: { colors: {
@ -106,6 +124,15 @@ export const darkTheme = createTheme({
'success-1': 'rgba(96, 195, 112, 1)', 'success-1': 'rgba(96, 195, 112, 1)',
'success-2': 'rgba(96, 195, 112, 0.2)', 'success-2': 'rgba(96, 195, 112, 0.2)',
'mention-1': 'rgba(123, 229, 255, 1)',
'mention-2': 'rgba(13, 164, 201, 0.3)',
'mention-3': 'rgba(13, 164, 201, 0.2)',
'mention-4': 'rgba(13, 164, 201, 0.1)',
'pin-1': 'rgba(255, 166, 123, 1)',
'pin-2': 'rgba(254, 143, 89, 0.2)',
'pin-3': 'rgba(254, 143, 89, 0.1)',
'accent-1': 'rgba(255, 255, 255, 1)', 'accent-1': 'rgba(255, 255, 255, 1)',
'accent-2': 'rgba(255, 255, 255, 0.9)', 'accent-2': 'rgba(255, 255, 255, 0.9)',
'accent-3': 'rgba(255, 255, 255, 0.8)', 'accent-3': 'rgba(255, 255, 255, 0.8)',