@@ -42,15 +42,15 @@ export function ColorVariables(props) {
4242 < Flex flexWrap = "wrap" { ...props } >
4343 < FadeVariables id = "black" hue = "black" bg = "black" color = "white" >
4444 < BorderBox border = { 0 } borderRadius = { 0 } borderTop = { 1 } borderColor = "gray.5" mt = { 1 } >
45- < Text as = "div" fontSize = { 2 } pt = { 3 } mb = { 0 } >
45+ < Text is = "div" fontSize = { 2 } pt = { 3 } mb = { 0 } >
4646 Black fades apply alpha transparency to the < Var > $black</ Var > variable. The black color value has a slight
4747 blue hue to match our grays.
4848 </ Text >
4949 </ BorderBox >
5050 </ FadeVariables >
5151 < FadeVariables id = "white" hue = "white" over = { BLACK } >
5252 < BorderBox border = { 0 } borderRadius = { 0 } borderTop = { 1 } mt = { 1 } >
53- < Text as = "div" fontSize = { 2 } pt = { 3 } mb = { 0 } >
53+ < Text is = "div" fontSize = { 2 } pt = { 3 } mb = { 0 } >
5454 White fades apply alpha transparency to the < Var > $white</ Var > variable, below these are shown overlaid on
5555 a dark gray background.
5656 </ Text >
@@ -64,14 +64,14 @@ export function ColorVariables(props) {
6464export function ColorVariable ( { hue, ...rest } ) {
6565 const values = colors [ hue ]
6666 return (
67- < Flex . Item as = { Box } pr = { 4 } mb = { 6 } className = "col-6 markdown-no-margin" { ...rest } >
68- { /* <Heading as ="div">{titleCase(hue)}</Heading> */ }
67+ < Flex . Item is = { Box } pr = { 4 } mb = { 6 } className = "col-6 markdown-no-margin" { ...rest } >
68+ { /* <Heading is ="div">{titleCase(hue)}</Heading> */ }
6969 < Box bg = { `${ hue } .5` } my = { 2 } p = { 3 } color = "white" >
70- < Heading as = "div" pb = { 3 } fontSize = { 56 } fontWeight = "light" >
70+ < Heading is = "div" pb = { 3 } fontSize = { 56 } fontWeight = "light" >
7171 { titleCase ( hue ) }
7272 </ Heading >
7373 < Flex justifyContent = "space-between" >
74- < Flex . Item flex = "1 1 auto" as = { Var } >
74+ < Flex . Item flex = "1 1 auto" is = { Var } >
7575 ${ hue } -500
7676 </ Flex . Item >
7777 < Text fontFamily = "mono" > { values [ 5 ] } </ Text >
@@ -103,14 +103,14 @@ export function FadeVariables({hue, color, bg, over, children, ...rest}) {
103103 } )
104104 const boxProps = { color, bg}
105105 return (
106- < Flex . Item as = { Box } pr = { 4 } mb = { 6 } width = { 1 / 2 } className = "markdown-no-margin" { ...rest } >
107- { /* <Heading as ="div">{titleCase(hue)}</Heading> */ }
106+ < Flex . Item is = { Box } pr = { 4 } mb = { 6 } width = { 1 / 2 } className = "markdown-no-margin" { ...rest } >
107+ { /* <Heading is ="div">{titleCase(hue)}</Heading> */ }
108108 < Box my = { 2 } p = { 3 } { ...boxProps } >
109- < Heading as = "div" pb = { 3 } fontSize = { 56 } fontWeight = "light" >
109+ < Heading is = "div" pb = { 3 } fontSize = { 56 } fontWeight = "light" >
110110 { titleCase ( hue ) }
111111 </ Heading >
112112 < Flex justifyContent = "space-between" >
113- < Flex . Item flex = "1 1 auto" as = { Var } >
113+ < Flex . Item flex = "1 1 auto" is = { Var } >
114114 ${ hue }
115115 </ Flex . Item >
116116 < Text fontFamily = "mono" >
@@ -141,7 +141,7 @@ function Swatch(props) {
141141 const { name, value, textColor = overlayColor ( value ) , ...rest } = props
142142 return (
143143 < Box bg = { value } color = { textColor } { ...rest } >
144- < Text as = { Flex } fontSize = { 1 } justifyContent = "space-between" >
144+ < Text is = { Flex } fontSize = { 1 } justifyContent = "space-between" >
145145 < Box p = { 3 } >
146146 < Var > ${ name } </ Var >
147147 </ Box >
@@ -161,7 +161,7 @@ Swatch.propTypes = {
161161
162162function Var ( props ) {
163163 // FIXME: fontStyle should be a prop, right?
164- return < Text as = "var" fontWeight = "bold" fontFamily = "mono" style = { { fontStyle : 'normal' } } { ...props } />
164+ return < Text is = "var" fontWeight = "bold" fontFamily = "mono" style = { { fontStyle : 'normal' } } { ...props } />
165165}
166166
167167function overlayColor ( bg ) {
0 commit comments