Many css in js solutions are designed to be used with JavaScript, but Devup UI is designed to be used without JavaScript.
Devup UI is a CSS in JS preprocessor that does not require runtime.
Devup UI eliminates the performance degradation of the browser through the CSS in JS preprocessor.
We develop a preprocessor that considers all grammatical cases.
1const before = <Box bg="red" /> 2 3const after = <div className="d0" />1const before = <Box bg="red" /> 2 3const after = <div className="d0" />
Devup UI supports responsive design.
1const before = <Box bg={['red', 'blue']} /> 2 3const after = <div className="d0 d1" />1const before = <Box bg={['red', 'blue']} /> 2 3const after = <div className="d0 d1" />
Devup UI supports variables.
1const before = <Box bg={colorVariable} /> 2 3const after = ( 4 <div 5 className="d0" 6 style={{ 7 '--d0': colorVariable, 8 }} 9 /> 10)1const before = <Box bg={colorVariable} /> 2 3const after = ( 4 <div 5 className="d0" 6 style={{ 7 '--d0': colorVariable, 8 }} 9 /> 10)
Devup UI supports theme.
1{ 2 "theme": { 3 "colors": { 4 "default": { 5 "text": "#000" 6 }, 7 "dark": { 8 "text": "white" 9 } 10 } 11 } 12}1{ 2 "theme": { 3 "colors": { 4 "default": { 5 "text": "#000" 6 }, 7 "dark": { 8 "text": "white" 9 } 10 } 11 } 12}
1<Text color="$text" />1<Text color="$text" />
Devup UI supports expressions.
1const before = <Box bg={a > b ? 'yellow' : variable} /> 2 3const after = ( 4 <Box 5 className={`d0 d1 ${a > b ? 'd2' : 'd3'}`} 6 style={{ 7 '--d2': variable, 8 }} 9 /> 10)1const before = <Box bg={a > b ? 'yellow' : variable} /> 2 3const after = ( 4 <Box 5 className={`d0 d1 ${a > b ? 'd2' : 'd3'}`} 6 style={{ 7 '--d2': variable, 8 }} 9 /> 10)
Devup UI supports pseudo selector.
1const before = <Box _hover={{ bg: 'red' }} /> 2 3const after = <Box className="d0" />1const before = <Box _hover={{ bg: 'red' }} /> 2 3const after = <Box className="d0" />