feat: color improvements

This commit is contained in:
Junior García 2021-12-20 00:26:40 -03:00
parent 640fd3082c
commit 582d49316f
3 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,5 @@
import React from 'react';
import { addColorAlpha } from '../utils/color';
import { theme, globalCss, getCssText } from '../theme/stitches.config';
import { globalCss, getCssText } from '../theme/stitches.config';
const globalStyles = globalCss({
'*, *:before, *:after': {
@ -131,14 +130,14 @@ const globalStyles = globalCss({
color: '$code',
padding: '$1 $2',
borderRadius: '$xs',
backgroundColor: addColorAlpha(theme.colors?.code?.value, 0.2),
bg: '$codeLight',
fontFamily: '$mono',
fontSize: '$xs',
whiteSpace: 'pre-wrap',
transition: '$default'
},
'code:hover': {
backgroundColor: addColorAlpha(theme.colors?.code?.value, 0.3)
opacity: 0.8
},
pre: {
overflow: 'auto',

View File

@ -12,7 +12,8 @@ export default {
text: '$white',
background: '$black',
foreground: '$white',
code: '#77c8e6',
codeLight: '#16272e',
code: '#6cc0e1',
border: '$gray500',
selection: '#ff4ecd'
},

View File

@ -9,9 +9,10 @@ export default {
accents7: '$gray700',
accents8: '$gray800',
accents9: '$gray900',
text: '$gray500',
text: '$gray800',
background: '$white',
foreground: '$black',
codeLight: '$pink100',
code: '$pink500',
border: '$gray200',
selection: '$blue200'