├── .gitignore
├── DOCS.md
├── README.md
├── now.json
├── package.json
├── public
├── favicon.ico
├── index.html
└── manifest.json
├── src
├── App.css
├── App.js
├── App.test.js
├── components
│ ├── BlockLink.js
│ ├── BlockLinkGlow.js
│ ├── Card.js
│ ├── Container.js
│ ├── Flex.js
│ └── Logo.js
├── elements
│ ├── A.js
│ ├── Abbr.js
│ ├── Address.js
│ ├── Article.js
│ ├── Aside.js
│ ├── B.js
│ ├── Br.js
│ ├── Button.js
│ ├── Circle.js
│ ├── Cite.js
│ ├── Code.js
│ ├── Data.js
│ ├── Dd.js
│ ├── Details.js
│ ├── Div.js
│ ├── Dl.js
│ ├── Dt.js
│ ├── Em.js
│ ├── Fieldset.js
│ ├── Footer.js
│ ├── Form.js
│ ├── H1.js
│ ├── H2.js
│ ├── H3.js
│ ├── H4.js
│ ├── H5.js
│ ├── H6.js
│ ├── Header.js
│ ├── Hr.js
│ ├── I.js
│ ├── Img.js
│ ├── Input.js
│ ├── InputCheckbox.js
│ ├── InputEmail.js
│ ├── InputFile.js
│ ├── InputNumber.js
│ ├── InputPassword.js
│ ├── InputRadio.js
│ ├── InputSearch.js
│ ├── InputSubmit.js
│ ├── InputTelephone.js
│ ├── InputText.js
│ ├── InputUrl.js
│ ├── Kbd.js
│ ├── Label.js
│ ├── Legend.js
│ ├── Li.js
│ ├── Main.js
│ ├── Nav.js
│ ├── Ol.js
│ ├── P.js
│ ├── Path.js
│ ├── Polygon.js
│ ├── Polyline.js
│ ├── Pre.js
│ ├── Progress.js
│ ├── Q.js
│ ├── Rect.js
│ ├── S.js
│ ├── Samp.js
│ ├── Section.js
│ ├── Select.js
│ ├── Small.js
│ ├── Span.js
│ ├── Strong.js
│ ├── Sub.js
│ ├── Summary.js
│ ├── Sup.js
│ ├── Svg.js
│ ├── Table.js
│ ├── Tbody.js
│ ├── Td.js
│ ├── Textarea.js
│ ├── Tfoot.js
│ ├── Th.js
│ ├── Thead.js
│ ├── Time.js
│ ├── Tr.js
│ ├── U.js
│ ├── Ul.js
│ ├── Var.js
│ └── index.js
├── index.css
├── index.js
├── jsx.js
├── logo.svg
├── pages
│ ├── Components.js
│ ├── Example.js
│ ├── Home.js
│ ├── Playground.js
│ └── Styles.js
├── serviceWorker.js
├── theme-syntax.js
└── theme.js
└── yarn.lock
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/DOCS.md:
--------------------------------------------------------------------------------
1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
2 |
3 | ## Available Scripts
4 |
5 | In the project directory, you can run:
6 |
7 | ### `npm start`
8 |
9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11 |
12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console.
14 |
15 | ### `npm test`
16 |
17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19 |
20 | ### `npm run build`
21 |
22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance.
24 |
25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed!
27 |
28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29 |
30 | ### `npm run eject`
31 |
32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33 |
34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
35 |
36 | Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
37 |
38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
39 |
40 | ## Learn More
41 |
42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43 |
44 | To learn React, check out the [React documentation](https://reactjs.org/).
45 |
46 | ### Code Splitting
47 |
48 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
49 |
50 | ### Analyzing the Bundle Size
51 |
52 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
53 |
54 | ### Making a Progressive Web App
55 |
56 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
57 |
58 | ### Advanced Configuration
59 |
60 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
61 |
62 | ### Deployment
63 |
64 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
65 |
66 | ### `npm run build` fails to minify
67 |
68 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
69 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Tachyons React App [WIP]
2 |
3 | This extends create-react-app to include Tachyons implemented with emotion +
4 | styled-system. If you're familiar with Tachyons and are interested in
5 | css-in-js, this is hopefully a helpful project. Can be used for anything you'd
6 | use create-react-app for. While Tachyons is light-weight by default, using css-in-js will
7 | result in increased css performance as you don't send unused styles down the wire.
8 |
9 | ## Getting going
10 |
11 | Clone the directory and cd into the root of the directory
12 | ```
13 | git clone git@github.com:tachyons-css/tachyons-styled-react.git newProject && cd newProject
14 | ```
15 |
16 | Install dependencies
17 | ```
18 | yarn
19 | ```
20 |
21 | Start the dev environment
22 | ```
23 | yarn start
24 | ```
25 |
26 | This should start a development environment on ```localhost:3000```
27 |
28 |
29 | ## Elements
30 | ```
31 | src/elements/
32 | ```
33 | This folder contains html elements wired up to styled system. Scales
34 | are defined and configurable in ```src/theme.js```
35 |
36 | Not every element has every styling prop included. For instance I don't find it useful
37 | to set fontSize on an img.
38 |
39 | Elements can be composed together just like regular html elements to make more
40 | complex components.
41 |
42 | ## Pages
43 |
44 | Add new pages / routes in src/App.js
45 |
46 | You can copy src/pages/Example.js to get a new blank page to work with. Say we wanted
47 | to create a view at localhost:3000/new-page and we wanted the page to be called NewPage.
48 |
49 | Import it into App.js
50 | ```
51 | // import pages here
52 | import Styles from './pages/Styles'
53 | import Home from './pages/Home'
54 | import NewPage from './pages/NewPage'
55 | ```
56 |
57 | Next add the route you want to use for that page
58 |
59 | ```
60 |
61 |
62 |
63 |
64 |
65 | ```
66 |
67 | ## Theme
68 |
69 | The theme file is 100% configurable. While Tachyons comes with some useful defaults,
70 | you can modify, extend, or reduce anything that's there to fit your needs.
71 |
72 | ## Styled system
73 |
74 | Styled system is well documented and I suggest checking out the official site
75 | over at https://styled-system.com. In short - Styled system allows you to pass
76 | arrays of values to style props like color, fontSize, display, and more that
77 | map to a consistent set of breakpoints. You can reference scales from a theme
78 | file or pass in literal values. The output is a set of single purpose classes
79 | for only the styles you need in your view.
80 |
81 | I love styled system. I've been using it heavily for the last two years and I
82 | think it is a great way to implement Tachyons. While many people think of
83 | Tachyons as a css file, I think of it as a project. A whole bunch of modular
84 | ideas with a common set of principals.
85 |
86 | The main Tachyons repo includes a bunch of terse naming schemes for a lot of
87 | the classes, but that was never a core part of the project, which is why thanks
88 | to [@hongkonggong](https://github.com/hongkonggong) there has been a verbose
89 | version with longer class names we've supported. While the main version was
90 | built with postcss, we've long supported a sass build as well. The stack has
91 | never been the point. Tachyons for me have been centered around pushing the
92 | envelope in css performance for both rendering and download speed while testing
93 | the relationships between values in design primitives.
94 |
95 | While trying to keep Tachyons small - it's important to limit
96 | things like how large the color palette is. For every color there were
97 | corresponding border,:hover,:focus classes. With styled-system and emotion this
98 | isn't an issue. You can keep a more verbose color palette, without automatically
99 | creating a larger css foot-print. The only css that's generated is for the styles you are
100 | using. While some people use something to strip out unused styles, I think this
101 | model makes more sense and is less error prone.
102 |
103 | While personally I don't have too much trouble parsing the same property being
104 | spread out in a class string e.g. ```"f2 db di-ns f3-m f4-l"``` I think it's a
105 | lot nicer to have properties automatically grouped together. You also aren't
106 | dealing with repetitive name spacing in the class names e.g ```f6 f4-ns f3-l```
107 | Each f is just indicating it's the font size property. I don't think I'm going
108 | out on a limb to say that this is ~1000x nicer ```fontSize={[3,4,6]}```
109 |
110 | If the transition to javascript style syntax scares you a bit, I can absolutely
111 | relate. I am very limited in my javascript ability and this project is partly a
112 | reflection of all the stuff I wish I had setup 2 years ago when I first started
113 | to almost explicitly work in codebases that used a css-in-js solution for
114 | styling. If you know html and css - I hope this serves as a gateway to play with
115 | react and css-in-js a bit. It's currently my favorite way to use Tachyons.
116 |
117 | ## Reference
118 |
119 | - https://styled-system.com
120 | - https://styled-system.com/table
121 | - https://emotion.sh
122 | - https://github.com/facebook/create-react-app
123 |
--------------------------------------------------------------------------------
/now.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 2,
3 | "name": "tachyons-styled-react",
4 | "alias": ["tachyons-styled-react.now.sh"],
5 | "builds": [
6 | {
7 | "src": "package.json",
8 | "use": "@now/static-build",
9 | "config": { "distDir": "build" }
10 | }
11 | ],
12 | "routes": [
13 | {
14 | "src": "/static/(.*)",
15 | "headers": { "cache-control": "s-maxage=31536000,immutable" },
16 | "dest": "/static/$1"
17 | },
18 | { "src": "/favicon.ico", "dest": "/favicon.ico" },
19 | { "src": "/asset-manifest.json", "dest": "/asset-manifest.json" },
20 | { "src": "/manifest.json", "dest": "/manifest.json" },
21 | { "src": "/precache-manifest.(.*)", "dest": "/precache-manifest.$1" },
22 | {
23 | "src": "/service-worker.js",
24 | "headers": { "cache-control": "s-maxage=0" },
25 | "dest": "/service-worker.js"
26 | },
27 | {
28 | "src": "/(.*)",
29 | "headers": { "cache-control": "s-maxage=0" },
30 | "dest": "/index.html"
31 | }
32 | ]
33 | }
34 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tachyons-styled-react",
3 | "version": "0.2.0",
4 | "private": true,
5 | "dependencies": {
6 | "@emotion/core": "^10.0.10",
7 | "@emotion/styled": "^10.0.10",
8 | "@styled-system/should-forward-prop": "^1.0.0",
9 | "chroma-js": "^2.0.3",
10 | "emotion-theming": "^10.0.10",
11 | "react": "^16.8.6",
12 | "react-dom": "^16.8.6",
13 | "react-emotion": "^10.0.0",
14 | "react-live": "^2.1.1",
15 | "react-router-dom": "^5.0.0",
16 | "react-scripts": "3.0.0",
17 | "styled-system": "^4.1.0"
18 | },
19 | "scripts": {
20 | "start": "react-scripts start",
21 | "build": "react-scripts build",
22 | "test": "react-scripts test",
23 | "eject": "react-scripts eject",
24 | "now-build": "npm run build"
25 | },
26 | "eslintConfig": {
27 | "extends": "react-app"
28 | },
29 | "browserslist": {
30 | "production": [
31 | ">0.2%",
32 | "not dead",
33 | "not op_mini all"
34 | ],
35 | "development": [
36 | "last 1 chrome version",
37 | "last 1 firefox version",
38 | "last 1 safari version"
39 | ]
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tachyons-css/tachyons-styled-react/d2a0cf0f2536d3cadbc5ff52f3c7ca6eb621ce7c/public/favicon.ico
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
22 | Tachyons React App
23 |
24 |
25 | You need to enable JavaScript to run this app.
26 |
27 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | }
10 | ],
11 | "start_url": ".",
12 | "display": "standalone",
13 | "theme_color": "#000000",
14 | "background_color": "#ffffff"
15 | }
16 |
--------------------------------------------------------------------------------
/src/App.css:
--------------------------------------------------------------------------------
1 | .App {
2 | text-align: center;
3 | }
4 |
5 | .App-logo {
6 | animation: App-logo-spin infinite 20s linear;
7 | height: 40vmin;
8 | pointer-events: none;
9 | }
10 |
11 | .App-header {
12 | background-color: #282c34;
13 | min-height: 100vh;
14 | display: flex;
15 | flex-direction: column;
16 | align-items: center;
17 | justify-content: center;
18 | font-size: calc(10px + 2vmin);
19 | color: white;
20 | }
21 |
22 | .App-link {
23 | color: #61dafb;
24 | }
25 |
26 | @keyframes App-logo-spin {
27 | from {
28 | transform: rotate(0deg);
29 | }
30 | to {
31 | transform: rotate(360deg);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/App.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import { ThemeProvider } from "emotion-theming"
3 | import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
4 | import theme from './theme'
5 |
6 | // import pages here
7 | import Styles from './pages/Styles'
8 | import Home from './pages/Home'
9 | import Playground from './pages/Playground'
10 | import Components from './pages/Components'
11 |
12 | import Div from './elements/Div'
13 |
14 | function App() {
15 | return (
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | );
27 | }
28 |
29 | export default App
30 |
--------------------------------------------------------------------------------
/src/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import App from './App';
4 |
5 | it('renders without crashing', () => {
6 | const div = document.createElement('div');
7 | ReactDOM.render( , div);
8 | ReactDOM.unmountComponentAtNode(div);
9 | });
10 |
--------------------------------------------------------------------------------
/src/components/BlockLink.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 |
4 | import {
5 | space,
6 | width,
7 | maxWidth,
8 | display,
9 | alignItems,
10 | justifyContent,
11 | fontSize,
12 | fontWeight,
13 | textAlign,
14 | color,
15 | borders,
16 | borderColor,
17 | borderRadius,
18 | textStyle
19 | } from "styled-system"
20 |
21 | const BlockLink = styled('a', { shouldForwardProp })(
22 | space,
23 | width,
24 | maxWidth,
25 | display,
26 | fontSize,
27 | fontWeight,
28 | textAlign,
29 | textStyle,
30 | color,
31 | alignItems,
32 | justifyContent,
33 | borders,
34 | borderColor,
35 | borderRadius,
36 | {
37 | boxSizing: "border-box",
38 | textDecoration: "none",
39 | opacity: 1,
40 | transition: 'opacity .25s ease-in',
41 | ":hover": {
42 | cursor: "pointer",
43 | opacity: .6,
44 | transition: 'opacity .25s ease-in'
45 | }
46 | }
47 | )
48 |
49 | BlockLink.defaultProps = {
50 | display: "block",
51 | bg: "transparent",
52 | }
53 |
54 | export default BlockLink
55 |
--------------------------------------------------------------------------------
/src/components/BlockLinkGlow.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 |
4 | import {
5 | space,
6 | width,
7 | maxWidth,
8 | display,
9 | alignItems,
10 | justifyContent,
11 | fontSize,
12 | fontWeight,
13 | textAlign,
14 | color,
15 | borders,
16 | borderColor,
17 | borderRadius,
18 | textStyle
19 | } from "styled-system"
20 |
21 | const BlockLinkGlow = styled('a', { shouldForwardProp })(
22 | space,
23 | width,
24 | maxWidth,
25 | display,
26 | fontSize,
27 | fontWeight,
28 | textAlign,
29 | textStyle,
30 | color,
31 | alignItems,
32 | justifyContent,
33 | borders,
34 | borderColor,
35 | borderRadius,
36 | {
37 | boxSizing: "border-box",
38 | textDecoration: "none",
39 | opacity: .75,
40 | transition: 'opacity .25s ease-in',
41 | ":hover": {
42 | cursor: "pointer",
43 | opacity: 1,
44 | transition: 'opacity .25s ease-in'
45 | }
46 | }
47 | )
48 |
49 | BlockLinkGlow.defaultProps = {
50 | display: "block",
51 | bg: "transparent",
52 | cursor: "pointer"
53 | }
54 |
55 | export default BlockLinkGlow
56 |
--------------------------------------------------------------------------------
/src/components/Card.js:
--------------------------------------------------------------------------------
1 | /** @jsx jsx */
2 | import jsx from '../jsx'
3 | import React from 'react'
4 |
5 | const Card = ({ image, title, subtitle, text, tag, link, ...props}) => {
6 | return (
7 |
8 |
9 | {tag &&
10 |
{tag}
11 | }
12 |
13 |
14 |
15 |
16 | {title &&
{title} }
17 | {subtitle &&
{subtitle} }
18 | {text &&
{text}
}
19 | {link &&
{link.text} }
20 |
21 |
22 | )
23 | }
24 |
25 | Card.defaultProps = {
26 | border: '1px solid',
27 | borderColor: 'black-10',
28 | borderRadius: 2,
29 | style: { overflow: 'hidden' },
30 | }
31 |
32 | export default Card
33 |
--------------------------------------------------------------------------------
/src/components/Container.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import theme from "../theme"
3 | import Div from "../elements/Div"
4 |
5 | const Container = ({ innerBg, innerWidth, ...props }) => {
6 | return (
7 |
8 |
9 | {props.children}
10 |
11 |
12 | )
13 | }
14 |
15 | Container.defaultProps = {
16 | innerWidth: theme.containerWidth? theme.containerWidth: '64rem',
17 | innerBg: "transparent"
18 | }
19 |
20 | export default Container
21 |
--------------------------------------------------------------------------------
/src/components/Flex.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 |
4 | import {
5 | space,
6 | width,
7 | height,
8 | maxWidth,
9 | position,
10 | top,
11 | left,
12 | right,
13 | bottom,
14 | display,
15 | flex,
16 | flexWrap,
17 | alignItems,
18 | justifyContent,
19 | fontFamily,
20 | fontSize,
21 | textAlign,
22 | color,
23 | borders,
24 | borderColor,
25 | borderRadius,
26 | gridGap,
27 | gridColumnGap,
28 | gridRowGap,
29 | gridColumn,
30 | gridRow,
31 | gridAutoFlow,
32 | gridAutoColumns,
33 | gridAutoRows,
34 | gridTemplateColumns,
35 | gridTemplateRows,
36 | gridTemplateAreas,
37 | gridArea
38 | } from "styled-system"
39 |
40 | const Flex = styled('div', { shouldForwardProp })(
41 | space,
42 | width,
43 | height,
44 | maxWidth,
45 | position,
46 | top,
47 | left,
48 | right,
49 | bottom,
50 | display,
51 | flex,
52 | flexWrap,
53 | alignItems,
54 | justifyContent,
55 | fontFamily,
56 | fontSize,
57 | textAlign,
58 | color,
59 | borders,
60 | borderColor,
61 | borderRadius,
62 | gridGap,
63 | gridColumnGap,
64 | gridRowGap,
65 | gridColumn,
66 | gridRow,
67 | gridAutoFlow,
68 | gridAutoColumns,
69 | gridAutoRows,
70 | gridTemplateColumns,
71 | gridTemplateRows,
72 | gridTemplateAreas,
73 | gridArea,
74 | {
75 | boxSizing: "border-box"
76 | }
77 | )
78 |
79 | Flex.defaultProps = {
80 | width: 1,
81 | display: 'flex',
82 | flexWrap: ['wrap', 'nowrap'],
83 | alignItems: 'center',
84 |
85 | }
86 |
87 | export default Flex
88 |
--------------------------------------------------------------------------------
/src/components/Logo.js:
--------------------------------------------------------------------------------
1 | import React from "react"
2 | import theme from "../theme"
3 | import Svg from '../elements/Svg'
4 | import Path from '../elements/Path'
5 |
6 | const Logo = ({ ...props}) => {
7 | return (
8 |
9 | Tachyons Logo
10 |
11 |
12 |
13 | )
14 | }
15 |
16 | Logo.defaultProps = {
17 | }
18 |
19 | export default Logo
20 |
21 |
--------------------------------------------------------------------------------
/src/elements/A.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 |
4 | import {
5 | space,
6 | width,
7 | maxWidth,
8 | display,
9 | alignItems,
10 | justifyContent,
11 | fontSize,
12 | fontWeight,
13 | textAlign,
14 | color,
15 | borders,
16 | borderColor,
17 | borderRadius,
18 | textStyle
19 | } from "styled-system"
20 |
21 | const A = styled('a', { shouldForwardProp })(
22 | space,
23 | width,
24 | maxWidth,
25 | display,
26 | fontSize,
27 | fontWeight,
28 | textAlign,
29 | textStyle,
30 | color,
31 | alignItems,
32 | justifyContent,
33 | borders,
34 | borderColor,
35 | borderRadius,
36 | {
37 | boxSizing: "border-box",
38 | textDecoration: "none",
39 | ":hover": {
40 | cursor: "pointer"
41 | }
42 | }
43 | )
44 |
45 | A.defaultProps = {
46 | display: "inline-block",
47 | bg: "transparent",
48 | }
49 |
50 | export default A
51 |
--------------------------------------------------------------------------------
/src/elements/Abbr.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | fontSize,
7 | fontWeight,
8 | textAlign,
9 | color,
10 | display,
11 | textStyle
12 | } from "styled-system"
13 |
14 | const Abbr = styled('abbr', { shouldForwardProp })(
15 | space,
16 | width,
17 | fontSize,
18 | fontWeight,
19 | textAlign,
20 | color,
21 | display,
22 | textStyle,
23 | {}
24 | )
25 |
26 | Abbr.defaultProps = {}
27 |
28 | export default Abbr
29 |
--------------------------------------------------------------------------------
/src/elements/Address.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | display,
6 | width,
7 | fontSize,
8 | lineHeight,
9 | textAlign,
10 | color,
11 | borders,
12 | borderColor,
13 | borderRadius,
14 | textStyle,
15 | } from 'styled-system'
16 |
17 | const Address = styled('address', { shouldForwardProp })(
18 | space,
19 | display,
20 | width,
21 | fontSize,
22 | lineHeight,
23 | textAlign,
24 | color,
25 | borders,
26 | borderColor,
27 | borderRadius,
28 | textStyle,
29 | {},
30 | )
31 |
32 | Address.defaultProps = {}
33 |
34 | export default Address
35 |
--------------------------------------------------------------------------------
/src/elements/Article.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | flex,
9 | flexWrap,
10 | alignItems,
11 | justifyContent,
12 | fontSize,
13 | textAlign,
14 | lineHeight,
15 | color,
16 | borders,
17 | borderColor,
18 | borderRadius,
19 | gridGap,
20 | gridColumnGap,
21 | gridRowGap,
22 | gridColumn,
23 | gridRow,
24 | gridAutoFlow,
25 | gridAutoColumns,
26 | gridAutoRows,
27 | gridTemplateColumns,
28 | gridTemplateRows,
29 | gridTemplateAreas,
30 | gridArea,
31 | overflow,
32 | } from 'styled-system'
33 |
34 | const Article = styled('article', { shouldForwardProp })(
35 | space,
36 | width,
37 | maxWidth,
38 | display,
39 | flex,
40 | flexWrap,
41 | alignItems,
42 | justifyContent,
43 | fontSize,
44 | textAlign,
45 | lineHeight,
46 | color,
47 | borders,
48 | borderColor,
49 | borderRadius,
50 | gridGap,
51 | gridColumnGap,
52 | gridRowGap,
53 | gridColumn,
54 | gridRow,
55 | gridAutoFlow,
56 | gridAutoColumns,
57 | gridAutoRows,
58 | gridTemplateColumns,
59 | gridTemplateRows,
60 | gridTemplateAreas,
61 | gridArea,
62 | overflow,
63 | {
64 | boxSizing: 'border-box',
65 | },
66 | )
67 |
68 | Article.defaultProps = {
69 | width: 1,
70 | }
71 |
72 | export default Article
73 |
--------------------------------------------------------------------------------
/src/elements/Aside.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | fontSize,
9 | lineHeight,
10 | textAlign,
11 | color,
12 | borders,
13 | borderColor,
14 | borderRadius
15 | } from "styled-system"
16 |
17 | const Aside = styled('aside', { shouldForwardProp })(
18 | space,
19 | width,
20 | maxWidth,
21 | display,
22 | fontSize,
23 | lineHeight,
24 | textAlign,
25 | color,
26 | borders,
27 | borderColor,
28 | borderRadius,
29 | {
30 | boxSizing: "border-box"
31 | }
32 | )
33 |
34 | Aside.defaultProps = {}
35 |
36 | export default Aside
37 |
--------------------------------------------------------------------------------
/src/elements/B.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {space, width, display, fontSize, fontWeight, color} from 'styled-system'
4 |
5 | const B = styled('b', { shouldForwardProp })(
6 | space, width, display, fontSize, fontWeight, color,
7 | {}
8 | )
9 |
10 | B.defaultProps = {
11 | fontWeight: 'bolder',
12 | }
13 |
14 | export default B
15 |
--------------------------------------------------------------------------------
/src/elements/Br.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {space, display} from 'styled-system'
4 |
5 | const Br = styled('br', { shouldForwardProp })(space, display, {})
6 |
7 | Br.defaultProps = {}
8 |
9 | export default Br
10 |
--------------------------------------------------------------------------------
/src/elements/Button.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | fontSize,
9 | fontWeight,
10 | lineHeight,
11 | textAlign,
12 | color,
13 | borders,
14 | borderColor,
15 | borderRadius,
16 | textStyle,
17 | } from 'styled-system'
18 |
19 | const Button = styled('button', { shouldForwardProp })(
20 | space,
21 | width,
22 | maxWidth,
23 | display,
24 | fontSize,
25 | fontWeight,
26 | lineHeight,
27 | textAlign,
28 | color,
29 | borders,
30 | borderColor,
31 | borderRadius,
32 | textStyle,
33 | {
34 | boxSizing: 'border-box',
35 | fontFamily: 'inherit',
36 | overflow: 'visible',
37 | textTransform: 'none',
38 | webkitAppearance: 'button',
39 | whiteSpace: 'nowrap'
40 | },
41 | )
42 |
43 | Button.defaultProps = {
44 | fontSize: '100%',
45 | lineHeight: 1.25,
46 | m: 0,
47 | textAlign: 'center',
48 | }
49 |
50 | export default Button
51 |
--------------------------------------------------------------------------------
/src/elements/Circle.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import { color } from "styled-system"
4 |
5 | const Circle = styled('circle', { shouldForwardProp })(
6 | color,
7 | {
8 | boxSizing: "border-box"
9 | }
10 | )
11 |
12 |
13 | Circle.defaultProps = {
14 | fill: "currentColor"
15 | }
16 |
17 | export default Circle
18 |
--------------------------------------------------------------------------------
/src/elements/Cite.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | lineHeight,
9 | textAlign,
10 | textStyle,
11 | color,
12 | borders,
13 | borderColor,
14 | } from "styled-system"
15 |
16 | const Cite = styled('cite', { shouldForwardProp })(
17 | space,
18 | width,
19 | display,
20 | fontSize,
21 | lineHeight,
22 | textAlign,
23 | textStyle,
24 | color,
25 | borders,
26 | borderColor,
27 | {}
28 | )
29 |
30 | Cite.defaultProps = {}
31 |
32 | export default Cite
33 |
--------------------------------------------------------------------------------
/src/elements/Code.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | color,
9 | borders,
10 | borderColor,
11 | borderRadius
12 | } from "styled-system"
13 |
14 | const Code = styled('code', { shouldForwardProp })(
15 | space,
16 | width,
17 | display,
18 | fontSize,
19 | color,
20 | borders,
21 | borderColor,
22 | borderRadius,
23 | {
24 | boxSizing: "border-box",
25 | fontFamily: "monospace, monospace"
26 | }
27 | )
28 |
29 | Code.defaultProps = {}
30 |
31 | export default Code
32 |
--------------------------------------------------------------------------------
/src/elements/Data.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {space, width, fontSize, color} from 'styled-system'
4 |
5 | const Data = styled('data', { shouldForwardProp })(
6 | space, width, fontSize, color, {}
7 | )
8 |
9 | Data.defaultProps = {}
10 |
11 | export default Data
12 |
--------------------------------------------------------------------------------
/src/elements/Dd.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | fontSize,
9 | fontWeight,
10 | lineHeight,
11 | textAlign,
12 | textStyle,
13 | color,
14 | borders,
15 | borderColor,
16 | } from 'styled-system'
17 |
18 | const Dd = styled('dd', { shouldForwardProp })(
19 | space,
20 | width,
21 | maxWidth,
22 | display,
23 | fontSize,
24 | fontWeight,
25 | lineHeight,
26 | textAlign,
27 | textStyle,
28 | color,
29 | borders,
30 | borderColor,
31 | {},
32 | )
33 |
34 | Dd.defaultProps = {}
35 |
36 | export default Dd
37 |
--------------------------------------------------------------------------------
/src/elements/Details.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | display,
6 | width,
7 | fontSize,
8 | fontWeight,
9 | textAlign,
10 | color,
11 | } from 'styled-system'
12 |
13 | const Details = styled('details', { shouldForwardProp })(
14 | space,
15 | display,
16 | width,
17 | fontSize,
18 | fontWeight,
19 | textAlign,
20 | color,
21 | {},
22 | )
23 |
24 | Details.defaultProps = {
25 | display: 'block',
26 | }
27 |
28 | export default Details
29 |
--------------------------------------------------------------------------------
/src/elements/Div.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 |
4 | import {
5 | space,
6 | width,
7 | height,
8 | maxWidth,
9 | position,
10 | top,
11 | left,
12 | right,
13 | bottom,
14 | display,
15 | flex,
16 | flexWrap,
17 | alignItems,
18 | justifyContent,
19 | fontFamily,
20 | fontSize,
21 | textAlign,
22 | color,
23 | borders,
24 | borderColor,
25 | borderRadius,
26 | gridGap,
27 | gridColumnGap,
28 | gridRowGap,
29 | gridColumn,
30 | gridRow,
31 | gridAutoFlow,
32 | gridAutoColumns,
33 | gridAutoRows,
34 | gridTemplateColumns,
35 | gridTemplateRows,
36 | gridTemplateAreas,
37 | gridArea
38 | } from "styled-system"
39 |
40 | const Div = styled('div', { shouldForwardProp })(
41 | space,
42 | width,
43 | height,
44 | maxWidth,
45 | position,
46 | top,
47 | left,
48 | right,
49 | bottom,
50 | display,
51 | flex,
52 | flexWrap,
53 | alignItems,
54 | justifyContent,
55 | fontFamily,
56 | fontSize,
57 | textAlign,
58 | color,
59 | borders,
60 | borderColor,
61 | borderRadius,
62 | gridGap,
63 | gridColumnGap,
64 | gridRowGap,
65 | gridColumn,
66 | gridRow,
67 | gridAutoFlow,
68 | gridAutoColumns,
69 | gridAutoRows,
70 | gridTemplateColumns,
71 | gridTemplateRows,
72 | gridTemplateAreas,
73 | gridArea,
74 | {
75 | boxSizing: "border-box"
76 | }
77 | )
78 |
79 | Div.defaultProps = {
80 | width: 1,
81 | color: 'inherit'
82 | }
83 |
84 | export default Div
85 |
--------------------------------------------------------------------------------
/src/elements/Dl.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | fontSize,
9 | textAlign,
10 | color,
11 | borders,
12 | borderColor,
13 | borderRadius
14 | } from "styled-system"
15 |
16 | const Dl = styled('dl', { shouldForwardProp })(
17 | space,
18 | width,
19 | maxWidth,
20 | display,
21 | fontSize,
22 | textAlign,
23 | color,
24 | borders,
25 | borderColor,
26 | borderRadius,
27 | {}
28 | )
29 |
30 | Dl.defaultProps = {}
31 |
32 | export default Dl
33 |
--------------------------------------------------------------------------------
/src/elements/Dt.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | fontSize,
9 | fontWeight,
10 | lineHeight,
11 | textAlign,
12 | textStyle,
13 | color,
14 | borders,
15 | borderColor
16 | } from "styled-system"
17 |
18 | const Dt = styled('dt', { shouldForwardProp })(
19 | space,
20 | width,
21 | maxWidth,
22 | display,
23 | fontSize,
24 | fontWeight,
25 | lineHeight,
26 | textAlign,
27 | textStyle,
28 | color,
29 | borders,
30 | borderColor,
31 | {}
32 | )
33 |
34 | Dt.defaultProps = {}
35 |
36 | export default Dt
37 |
--------------------------------------------------------------------------------
/src/elements/Em.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import { space, width, display, fontSize, color, textStyle } from "styled-system"
4 |
5 | const Em = styled('em', { shouldForwardProp })(
6 | space, width, display, fontSize, color, textStyle, {}
7 | )
8 |
9 | Em.defaultProps = {}
10 |
11 | export default Em
12 |
--------------------------------------------------------------------------------
/src/elements/Fieldset.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | fontSize,
9 | color,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | } from 'styled-system'
14 |
15 | const Fieldset = styled('fieldset', { shouldForwardProp })(
16 | space,
17 | width,
18 | maxWidth,
19 | display,
20 | fontSize,
21 | color,
22 | borders,
23 | borderColor,
24 | borderRadius,
25 | {
26 | boxSizing: 'border-box',
27 | },
28 | )
29 |
30 | Fieldset.defaultProps = {}
31 |
32 | export default Fieldset
33 |
--------------------------------------------------------------------------------
/src/elements/Footer.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | flex,
9 | alignItems,
10 | justifyContent,
11 | fontSize,
12 | textAlign,
13 | color,
14 | borders,
15 | borderColor,
16 | borderRadius,
17 | gridGap,
18 | gridColumnGap,
19 | gridRowGap,
20 | gridColumn,
21 | gridRow,
22 | gridAutoFlow,
23 | gridAutoColumns,
24 | gridAutoRows,
25 | gridTemplateColumns,
26 | gridTemplateRows,
27 | gridTemplateAreas,
28 | gridArea,
29 | } from 'styled-system'
30 |
31 | const Footer = styled('footer', { shouldForwardProp })(
32 | space,
33 | width,
34 | maxWidth,
35 | display,
36 | flex,
37 | alignItems,
38 | justifyContent,
39 | fontSize,
40 | textAlign,
41 | color,
42 | borders,
43 | borderColor,
44 | borderRadius,
45 | gridGap,
46 | gridColumnGap,
47 | gridRowGap,
48 | gridColumn,
49 | gridRow,
50 | gridAutoFlow,
51 | gridAutoColumns,
52 | gridAutoRows,
53 | gridTemplateColumns,
54 | gridTemplateRows,
55 | gridTemplateAreas,
56 | gridArea,
57 | {
58 | boxSizing: 'border-box',
59 | },
60 | )
61 |
62 | Footer.defaultProps = {}
63 |
64 | export default Footer
65 |
--------------------------------------------------------------------------------
/src/elements/Form.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | display,
6 | width,
7 | maxWidth,
8 | fontSize,
9 | color,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | } from 'styled-system'
14 |
15 | const Form = styled('form', { shouldForwardProp })(
16 | space,
17 | display,
18 | width,
19 | maxWidth,
20 | fontSize,
21 | color,
22 | borders,
23 | borderColor,
24 | borderRadius,
25 | {
26 | boxSizing: 'border-box',
27 | },
28 | )
29 |
30 | Form.defaultProps = {}
31 |
32 | export default Form
33 |
--------------------------------------------------------------------------------
/src/elements/H1.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | alignItems,
9 | justifyContent,
10 | fontSize,
11 | fontWeight,
12 | lineHeight,
13 | textAlign,
14 | textStyle,
15 | color,
16 | borders,
17 | borderColor,
18 | } from 'styled-system'
19 |
20 | const H1 = styled('h1', { shouldForwardProp })(
21 | space,
22 | width,
23 | maxWidth,
24 | display,
25 | alignItems,
26 | justifyContent,
27 | fontSize,
28 | fontWeight,
29 | lineHeight,
30 | textAlign,
31 | textStyle,
32 | color,
33 | borders,
34 | borderColor,
35 | {
36 | boxSizing: 'border-box',
37 | },
38 | )
39 |
40 | H1.defaultProps = {}
41 |
42 | export default H1
43 |
--------------------------------------------------------------------------------
/src/elements/H2.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | alignItems,
9 | justifyContent,
10 | fontSize,
11 | fontWeight,
12 | lineHeight,
13 | textAlign,
14 | textStyle,
15 | color,
16 | borders,
17 | borderColor,
18 | } from "styled-system"
19 |
20 | const H2 = styled('h2', { shouldForwardProp })(
21 | space,
22 | width,
23 | maxWidth,
24 | display,
25 | alignItems,
26 | justifyContent,
27 | fontSize,
28 | fontWeight,
29 | lineHeight,
30 | textAlign,
31 | textStyle,
32 | color,
33 | borders,
34 | borderColor,
35 | {
36 | boxSizing: "border-box"
37 | }
38 | )
39 |
40 | H2.defaultProps = {}
41 |
42 | export default H2
43 |
--------------------------------------------------------------------------------
/src/elements/H3.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | alignItems,
9 | justifyContent,
10 | fontSize,
11 | fontWeight,
12 | lineHeight,
13 | textAlign,
14 | textStyle,
15 | color,
16 | borders,
17 | borderColor,
18 | } from 'styled-system'
19 |
20 | const H3 = styled('h3', { shouldForwardProp })(
21 | space,
22 | width,
23 | maxWidth,
24 | display,
25 | alignItems,
26 | justifyContent,
27 | fontSize,
28 | fontWeight,
29 | lineHeight,
30 | textAlign,
31 | textStyle,
32 | color,
33 | borders,
34 | borderColor,
35 | {
36 | boxSizing: 'border-box',
37 | },
38 | )
39 |
40 | H3.defaultProps = {
41 | }
42 |
43 | export default H3
44 |
--------------------------------------------------------------------------------
/src/elements/H4.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | alignItems,
9 | justifyContent,
10 | fontSize,
11 | fontWeight,
12 | lineHeight,
13 | textAlign,
14 | textStyle,
15 | color,
16 | borders,
17 | borderColor,
18 | } from 'styled-system'
19 |
20 | const H4 = styled('h4', { shouldForwardProp })(
21 | space,
22 | width,
23 | maxWidth,
24 | display,
25 | alignItems,
26 | justifyContent,
27 | fontSize,
28 | fontWeight,
29 | lineHeight,
30 | textAlign,
31 | textStyle,
32 | color,
33 | borders,
34 | borderColor,
35 | {
36 | boxSizing: 'border-box',
37 | },
38 | )
39 |
40 | H4.defaultProps = {}
41 |
42 | export default H4
43 |
--------------------------------------------------------------------------------
/src/elements/H5.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | alignItems,
9 | justifyContent,
10 | fontSize,
11 | fontWeight,
12 | lineHeight,
13 | textAlign,
14 | textStyle,
15 | color,
16 | borders,
17 | borderColor,
18 | } from 'styled-system'
19 |
20 | const H5 = styled('h5', { shouldForwardProp })(
21 | space,
22 | width,
23 | maxWidth,
24 | display,
25 | alignItems,
26 | justifyContent,
27 | fontSize,
28 | fontWeight,
29 | lineHeight,
30 | textAlign,
31 | textStyle,
32 | color,
33 | borders,
34 | borderColor,
35 | textStyle,
36 | {
37 | boxSizing: 'border-box',
38 | },
39 | )
40 |
41 | H5.defaultProps = {}
42 |
43 | export default H5
44 |
--------------------------------------------------------------------------------
/src/elements/H6.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | alignItems,
9 | justifyContent,
10 | fontSize,
11 | fontWeight,
12 | lineHeight,
13 | textAlign,
14 | textStyle,
15 | color,
16 | borders,
17 | borderColor,
18 | } from 'styled-system'
19 |
20 | const H6 = styled('h6', { shouldForwardProp })(
21 | space,
22 | width,
23 | maxWidth,
24 | display,
25 | alignItems,
26 | justifyContent,
27 | fontSize,
28 | fontWeight,
29 | lineHeight,
30 | textAlign,
31 | textStyle,
32 | color,
33 | borders,
34 | borderColor,
35 | {
36 | boxSizing: 'border-box',
37 | },
38 | )
39 |
40 | H6.defaultProps = {}
41 |
42 | export default H6
43 |
--------------------------------------------------------------------------------
/src/elements/Header.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | flex,
8 | alignItems,
9 | justifyContent,
10 | fontSize,
11 | textAlign,
12 | color,
13 | borders,
14 | borderColor,
15 | gridGap,
16 | gridColumnGap,
17 | gridRowGap,
18 | gridColumn,
19 | gridRow,
20 | gridAutoFlow,
21 | gridAutoColumns,
22 | gridAutoRows,
23 | gridTemplateColumns,
24 | gridTemplateRows,
25 | gridTemplateAreas,
26 | gridArea,
27 | } from 'styled-system'
28 |
29 | const Header = styled('header', { shouldForwardProp })(
30 | space,
31 | width,
32 | display,
33 | flex,
34 | alignItems,
35 | justifyContent,
36 | fontSize,
37 | textAlign,
38 | color,
39 | borders,
40 | borderColor,
41 | gridGap,
42 | gridColumnGap,
43 | gridRowGap,
44 | gridColumn,
45 | gridRow,
46 | gridAutoFlow,
47 | gridAutoColumns,
48 | gridAutoRows,
49 | gridTemplateColumns,
50 | gridTemplateRows,
51 | gridTemplateAreas,
52 | gridArea,
53 | {
54 | boxSizing: 'border-box',
55 | },
56 | )
57 |
58 | Header.defaultProps = {}
59 |
60 | export default Header
61 |
--------------------------------------------------------------------------------
/src/elements/Hr.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | color,
8 | borders,
9 | borderColor
10 | } from "styled-system"
11 |
12 | const Hr = styled('hr', { shouldForwardProp })(
13 | space,
14 | width,
15 | maxWidth,
16 | color,
17 | borders,
18 | borderColor,
19 | {
20 | boxSizing: "border-box",
21 | height: 0,
22 | overflow: "visible"
23 | }
24 | )
25 |
26 | Hr.defaultProps = {
27 | borderTop: "1px solid currentColor",
28 | borderBottom: "0px solid transparent"
29 | }
30 |
31 | export default Hr
32 |
--------------------------------------------------------------------------------
/src/elements/I.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {space, width, fontSize, fontWeight, textStyle, color} from 'styled-system'
4 |
5 | const I = styled('i', { shouldForwardProp })(
6 | space, width, fontSize, fontWeight, color, textStyle, {}
7 | )
8 |
9 | I.defaultProps = {}
10 |
11 | export default I
12 |
--------------------------------------------------------------------------------
/src/elements/Img.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 |
4 | import {
5 | space,
6 | display,
7 | width,
8 | maxWidth,
9 | height,
10 | color,
11 | borders,
12 | borderColor,
13 | borderRadius,
14 | } from 'styled-system'
15 |
16 | const Img = styled('img', { shouldForwardProp })(
17 | space,
18 | display,
19 | width,
20 | maxWidth,
21 | height,
22 | color,
23 | borders,
24 | borderColor,
25 | borderRadius,
26 | {
27 |
28 | },
29 | )
30 |
31 | Img.defaultProps = {
32 | width: 1,
33 | display: 'block',
34 | maxWidth: '100%',
35 | border: '0 none transparent'
36 | }
37 |
38 | export default Img
39 |
--------------------------------------------------------------------------------
/src/elements/Input.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | fontWeight,
9 | lineHeight,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | color,
14 | } from 'styled-system'
15 |
16 | const Input = styled('input', { shouldForwardProp })(
17 | space,
18 | width,
19 | display,
20 | fontSize,
21 | fontWeight,
22 | lineHeight,
23 | color,
24 | borders,
25 | borderColor,
26 | borderRadius,
27 | {
28 | boxSizing: 'border-box',
29 | },
30 | )
31 |
32 | Input.defaultProps = {}
33 |
34 |
35 | export default Input
36 |
--------------------------------------------------------------------------------
/src/elements/InputCheckbox.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | fontWeight,
9 | lineHeight,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | color,
14 | } from 'styled-system'
15 |
16 | const InputCheckbox = styled('input', { shouldForwardProp })(
17 | space,
18 | width,
19 | display,
20 | fontSize,
21 | fontWeight,
22 | lineHeight,
23 | color,
24 | borders,
25 | borderColor,
26 | borderRadius,
27 | {},
28 | )
29 |
30 | InputCheckbox.defaultProps = {
31 | type: 'checkbox',
32 | }
33 |
34 | export default InputCheckbox
35 |
--------------------------------------------------------------------------------
/src/elements/InputEmail.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | fontWeight,
9 | lineHeight,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | color
14 | } from "styled-system"
15 |
16 | const InputEmail = styled('input', { shouldForwardProp })(
17 | space,
18 | width,
19 | display,
20 | fontSize,
21 | fontWeight,
22 | lineHeight,
23 | color,
24 | borders,
25 | borderColor,
26 | borderRadius,
27 | {
28 | boxSizing: "border-box"
29 | }
30 | )
31 |
32 | InputEmail.defaultProps = {
33 | type: "email"
34 | }
35 |
36 | export default InputEmail
37 |
--------------------------------------------------------------------------------
/src/elements/InputFile.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | fontWeight,
9 | lineHeight,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | color
14 | } from "styled-system"
15 |
16 | const InputFile = styled('input', { shouldForwardProp })(
17 | space,
18 | width,
19 | display,
20 | fontSize,
21 | fontWeight,
22 | lineHeight,
23 | color,
24 | borders,
25 | borderColor,
26 | borderRadius,
27 | {}
28 | )
29 |
30 | InputFile.defaultProps = {
31 | type: "file"
32 | }
33 |
34 | export default InputFile
35 |
--------------------------------------------------------------------------------
/src/elements/InputNumber.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | fontWeight,
9 | lineHeight,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | color,
14 | } from 'styled-system'
15 |
16 | const InputNumber = styled('input', { shouldForwardProp })(
17 | space,
18 | width,
19 | display,
20 | fontSize,
21 | fontWeight,
22 | lineHeight,
23 | color,
24 | borders,
25 | borderColor,
26 | borderRadius,
27 | {},
28 | )
29 |
30 | InputNumber.defaultProps = {
31 | type: 'number',
32 | }
33 |
34 | export default InputNumber
35 |
--------------------------------------------------------------------------------
/src/elements/InputPassword.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | fontWeight,
9 | lineHeight,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | color,
14 | } from 'styled-system'
15 |
16 | const InputPassword = styled('input', { shouldForwardProp })(
17 | space,
18 | width,
19 | display,
20 | fontSize,
21 | fontWeight,
22 | lineHeight,
23 | color,
24 | borders,
25 | borderColor,
26 | borderRadius,
27 | {
28 | boxSizing: 'border-box',
29 | },
30 | )
31 |
32 | InputPassword.defaultProps = {
33 | type: 'password',
34 | }
35 |
36 | export default InputPassword
37 |
--------------------------------------------------------------------------------
/src/elements/InputRadio.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | fontWeight,
9 | lineHeight,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | color
14 | } from "styled-system"
15 |
16 | const InputRadio = styled('input', { shouldForwardProp })(
17 | space,
18 | width,
19 | display,
20 | fontSize,
21 | fontWeight,
22 | lineHeight,
23 | color,
24 | borders,
25 | borderColor,
26 | borderRadius,
27 | {}
28 | )
29 |
30 | InputRadio.defaultProps = {
31 | type: "radio"
32 | }
33 |
34 | export default InputRadio
35 |
--------------------------------------------------------------------------------
/src/elements/InputSearch.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | fontWeight,
9 | lineHeight,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | color,
14 | } from 'styled-system'
15 |
16 | const InputSearch = styled('input', { shouldForwardProp })(
17 | space,
18 | width,
19 | display,
20 | fontSize,
21 | fontWeight,
22 | lineHeight,
23 | color,
24 | borders,
25 | borderColor,
26 | borderRadius,
27 | {boxSizing: 'border-box'},
28 | )
29 |
30 | InputSearch.defaultProps = {
31 | type: 'search',
32 | }
33 |
34 | export default InputSearch
35 |
--------------------------------------------------------------------------------
/src/elements/InputSubmit.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | fontWeight,
9 | lineHeight,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | color
14 | } from "styled-system"
15 |
16 | const InputSubmit = styled('input', { shouldForwardProp })(
17 | space,
18 | width,
19 | display,
20 | fontSize,
21 | fontWeight,
22 | lineHeight,
23 | color,
24 | borders,
25 | borderColor,
26 | borderRadius,
27 | {}
28 | )
29 |
30 | InputSubmit.defaultProps = {
31 | type: "submit"
32 | }
33 |
34 | export default InputSubmit
35 |
--------------------------------------------------------------------------------
/src/elements/InputTelephone.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | fontWeight,
9 | lineHeight,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | color,
14 | } from 'styled-system'
15 |
16 | const InputTelephone = styled('input', { shouldForwardProp })(
17 | space,
18 | width,
19 | display,
20 | fontSize,
21 | fontWeight,
22 | lineHeight,
23 | color,
24 | borders,
25 | borderColor,
26 | borderRadius,
27 | {boxSizing: 'border-box'},
28 | )
29 |
30 | InputTelephone.defaultProps = {
31 | type: 'tel',
32 | }
33 |
34 | export default InputTelephone
35 |
--------------------------------------------------------------------------------
/src/elements/InputText.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | fontWeight,
9 | lineHeight,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | color
14 | } from "styled-system"
15 |
16 | const Input = styled('input', { shouldForwardProp })(
17 | space,
18 | width,
19 | display,
20 | fontSize,
21 | fontWeight,
22 | lineHeight,
23 | color,
24 | borders,
25 | borderColor,
26 | borderRadius,
27 | {}
28 | )
29 |
30 | Input.defaultProps = {
31 | type: "text"
32 | }
33 |
34 | export default Input
35 |
--------------------------------------------------------------------------------
/src/elements/InputUrl.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | fontWeight,
9 | lineHeight,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | color
14 | } from "styled-system"
15 |
16 | const InputUrl = styled('input', { shouldForwardProp })(
17 | space,
18 | width,
19 | display,
20 | fontSize,
21 | fontWeight,
22 | lineHeight,
23 | color,
24 | borders,
25 | borderColor,
26 | borderRadius,
27 | {}
28 | )
29 |
30 | InputUrl.defaultProps = {
31 | type: "url"
32 | }
33 |
34 | export default InputUrl
35 |
--------------------------------------------------------------------------------
/src/elements/Kbd.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | fontSize,
7 | textStyle,
8 | color,
9 | borders,
10 | borderColor,
11 | borderRadius
12 | } from "styled-system"
13 |
14 | const Kbd = styled('code', { shouldForwardProp })(
15 | space,
16 | width,
17 | fontSize,
18 | textStyle,
19 | color,
20 | borders,
21 | borderColor,
22 | borderRadius,
23 | {
24 | boxSizing: "border-box",
25 | fontFamily: "monospace, monospace"
26 | }
27 | )
28 |
29 | Kbd.defaultProps = {
30 | fontSize: 2
31 | }
32 |
33 | export default Kbd
34 |
--------------------------------------------------------------------------------
/src/elements/Label.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | fontSize,
9 | fontWeight,
10 | lineHeight,
11 | textAlign,
12 | textStyle,
13 | color,
14 | } from 'styled-system'
15 |
16 | const Label = styled('label', { shouldForwardProp })(
17 | space,
18 | width,
19 | maxWidth,
20 | display,
21 | fontSize,
22 | fontWeight,
23 | lineHeight,
24 | textAlign,
25 | textStyle,
26 | color,
27 | {},
28 | )
29 |
30 | Label.defaultProps = {}
31 |
32 | export default Label
33 |
--------------------------------------------------------------------------------
/src/elements/Legend.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | fontSize,
9 | fontWeight,
10 | color,
11 | borders,
12 | borderColor,
13 | borderRadius
14 | } from "styled-system"
15 |
16 | const Legend = styled('legend', { shouldForwardProp })(
17 | space,
18 | width,
19 | maxWidth,
20 | display,
21 | fontSize,
22 | fontWeight,
23 | color,
24 | borders,
25 | borderColor,
26 | borderRadius,
27 | {
28 | boxSizing: "border-box",
29 | maxWidth: "100%",
30 | whiteSpace: "normal"
31 | }
32 | )
33 |
34 | Legend.defaultProps = {
35 | color: "inherit",
36 | display: "table",
37 | p: 0
38 | }
39 |
40 | export default Legend
41 |
--------------------------------------------------------------------------------
/src/elements/Li.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | fontSize,
7 | color,
8 | borders,
9 | borderColor,
10 | borderRadius,
11 | } from 'styled-system'
12 |
13 | const Li = styled('li', { shouldForwardProp })(
14 | space,
15 | width,
16 | fontSize,
17 | color,
18 | borders,
19 | borderColor,
20 | borderRadius,
21 | {
22 | boxSizing: 'border-box',
23 | },
24 | )
25 |
26 | Li.defaultProps = {
27 | pl: 0,
28 | }
29 |
30 | export default Li
31 |
--------------------------------------------------------------------------------
/src/elements/Main.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | fontSize,
9 | color,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | gridGap,
14 | gridColumnGap,
15 | gridRowGap,
16 | gridColumn,
17 | gridRow,
18 | gridAutoFlow,
19 | gridAutoColumns,
20 | gridAutoRows,
21 | gridTemplateColumns,
22 | gridTemplateRows,
23 | gridTemplateAreas,
24 | gridArea,
25 | } from 'styled-system'
26 |
27 | const Main = styled('main', { shouldForwardProp })(
28 | space,
29 | width,
30 | maxWidth,
31 | display,
32 | fontSize,
33 | color,
34 | borders,
35 | borderColor,
36 | borderRadius,
37 | gridGap,
38 | gridColumnGap,
39 | gridRowGap,
40 | gridColumn,
41 | gridRow,
42 | gridAutoFlow,
43 | gridAutoColumns,
44 | gridAutoRows,
45 | gridTemplateColumns,
46 | gridTemplateRows,
47 | gridTemplateAreas,
48 | gridArea,
49 | {
50 | boxSizing: 'border-box',
51 | },
52 | )
53 |
54 | Main.defaultProps = {
55 | width: 1,
56 | }
57 |
58 | export default Main
59 |
--------------------------------------------------------------------------------
/src/elements/Nav.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | fontSize,
8 | color,
9 | borders,
10 | borderColor,
11 | borderRadius,
12 | gridGap,
13 | gridColumnGap,
14 | gridRowGap,
15 | gridColumn,
16 | gridRow,
17 | gridAutoFlow,
18 | gridAutoColumns,
19 | gridAutoRows,
20 | gridTemplateColumns,
21 | gridTemplateRows,
22 | gridTemplateAreas,
23 | gridArea,
24 | } from 'styled-system'
25 |
26 | const Nav = styled('nav', { shouldForwardProp })(
27 | space,
28 | width,
29 | maxWidth,
30 | fontSize,
31 | color,
32 | borders,
33 | borderColor,
34 | borderRadius,
35 | gridGap,
36 | gridColumnGap,
37 | gridRowGap,
38 | gridColumn,
39 | gridRow,
40 | gridAutoFlow,
41 | gridAutoColumns,
42 | gridAutoRows,
43 | gridTemplateColumns,
44 | gridTemplateRows,
45 | gridTemplateAreas,
46 | gridArea,
47 | {
48 | boxSizing: 'border-box',
49 | },
50 | )
51 |
52 | Nav.defaultProps = {}
53 |
54 | export default Nav
55 |
--------------------------------------------------------------------------------
/src/elements/Ol.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | maxWidth,
8 | fontSize,
9 | color,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | gridGap,
14 | gridColumnGap,
15 | gridRowGap,
16 | gridColumn,
17 | gridRow,
18 | gridAutoFlow,
19 | gridAutoColumns,
20 | gridAutoRows,
21 | gridTemplateColumns,
22 | gridTemplateRows,
23 | gridTemplateAreas,
24 | gridArea,
25 | } from 'styled-system'
26 |
27 | const Ol = styled('ol', { shouldForwardProp })(
28 | space,
29 | width,
30 | maxWidth,
31 | display,
32 | fontSize,
33 | color,
34 | borders,
35 | borderColor,
36 | borderRadius,
37 | gridGap,
38 | gridColumnGap,
39 | gridRowGap,
40 | gridColumn,
41 | gridRow,
42 | gridAutoFlow,
43 | gridAutoColumns,
44 | gridAutoRows,
45 | gridTemplateColumns,
46 | gridTemplateRows,
47 | gridTemplateAreas,
48 | gridArea,
49 | {
50 | boxSizing: 'border-box',
51 | },
52 | )
53 |
54 | Ol.defaultProps = {}
55 |
56 | export default Ol
57 |
--------------------------------------------------------------------------------
/src/elements/P.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | maxWidth,
8 | fontSize,
9 | fontWeight,
10 | lineHeight,
11 | textAlign,
12 | textStyle,
13 | color,
14 | borders,
15 | borderColor,
16 | borderRadius,
17 | } from 'styled-system'
18 |
19 | const P = styled('p', { shouldForwardProp })(
20 | space,
21 | width,
22 | display,
23 | maxWidth,
24 | fontSize,
25 | fontWeight,
26 | lineHeight,
27 | textAlign,
28 | textStyle,
29 | color,
30 | borders,
31 | borderColor,
32 | borderRadius,
33 | {
34 | boxSizing: 'border-box',
35 | },
36 | )
37 |
38 | P.defaultProps = {
39 | maxWidth: '42em', // Sets text to maximum ~80 characters wide
40 | lineHeight: 1.5,
41 | }
42 |
43 | export default P
44 |
--------------------------------------------------------------------------------
/src/elements/Path.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import { color } from 'styled-system'
4 |
5 | const Path = styled('path', { shouldForwardProp })(
6 | color,
7 | {
8 | boxSizing: 'border-box',
9 | }
10 | )
11 |
12 | Path.defaultProps = {
13 | fill: 'currentColor',
14 | }
15 |
16 | export default Path
17 |
--------------------------------------------------------------------------------
/src/elements/Polygon.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import { color } from "styled-system"
4 |
5 | const Polygon = styled('polygon', { shouldForwardProp })(
6 | color,
7 | {
8 | boxSizing: "border-box"
9 | }
10 | )
11 |
12 | Polygon.defaultProps = {
13 | fill: "currentColor"
14 | }
15 |
16 | export default Polygon
17 |
--------------------------------------------------------------------------------
/src/elements/Polyline.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import { color } from 'styled-system'
4 |
5 | const Polyline = styled('polyline', { shouldForwardProp })(
6 | color,
7 | {
8 | boxSizing: 'border-box',
9 | }
10 | )
11 |
12 | Polyline.defaultProps = {
13 | fill: 'currentColor',
14 | }
15 |
16 | export default Polyline
17 |
--------------------------------------------------------------------------------
/src/elements/Pre.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | fontSize,
7 | color,
8 | borders,
9 | borderColor,
10 | borderRadius,
11 | } from 'styled-system'
12 |
13 | const Pre = styled('pre', { shouldForwardProp })(
14 | space,
15 | width,
16 | fontSize,
17 | color,
18 | borders,
19 | borderColor,
20 | borderRadius,
21 | {
22 | boxSizing: 'border-box',
23 | fontFamily: 'monaco, monospace',
24 | },
25 | )
26 |
27 | Pre.defaultProps = {}
28 |
29 | export default Pre
30 |
--------------------------------------------------------------------------------
/src/elements/Progress.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import theme from '../theme'
4 | import {
5 | space,
6 | width,
7 | height,
8 | display,
9 | color,
10 | borders,
11 | borderColor,
12 | borderRadius,
13 | } from 'styled-system'
14 |
15 | const Progress = styled('progress', { shouldForwardProp })(
16 | space,
17 | width,
18 | height,
19 | display,
20 | color,
21 | borders,
22 | borderColor,
23 | borderRadius,
24 | {
25 | overflow: 'hidden',
26 | webkitAppearance: 'none',
27 | appearance: 'none',
28 | '&[value]::-webkit-progress-bar': {
29 | backgroundColor: theme.colors.gray
30 | },
31 | '&[value]::-webkit-progress-value': {
32 | backgroundColor: theme.colors.blue
33 | },
34 | verticalAlign: 'top',
35 | },
36 | )
37 |
38 | Progress.defaultProps = {
39 | width: 1,
40 | height: 8,
41 | max: 100,
42 | value: 64
43 | }
44 |
45 | export default Progress
46 |
--------------------------------------------------------------------------------
/src/elements/Q.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | fontSize,
7 | fontWeight,
8 | lineHeight,
9 | color,
10 | } from 'styled-system'
11 |
12 | const Q = styled('q', { shouldForwardProp })(
13 | space, width, fontSize, fontWeight, lineHeight, color, {}
14 | )
15 |
16 | Q.defaultProps = {}
17 |
18 | export default Q
19 |
--------------------------------------------------------------------------------
/src/elements/Rect.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import { color } from "styled-system"
4 |
5 | const Rect = styled('rect', { shouldForwardProp })(
6 | color,
7 | {
8 | boxSizing: "border-box"
9 | })
10 |
11 | Rect.defaultProps = {
12 | fill: "currentColor"
13 | }
14 |
15 | export default Rect
16 |
--------------------------------------------------------------------------------
/src/elements/S.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import { space, width, fontSize, color } from 'styled-system'
4 |
5 | const S = styled('s', { shouldForwardProp })(
6 | space, width, fontSize, color, {}
7 | )
8 |
9 | S.defaultProps = {}
10 |
11 | export default S
12 |
--------------------------------------------------------------------------------
/src/elements/Samp.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | fontSize,
7 | fontWeight,
8 | lineHeight,
9 | color,
10 | borders,
11 | borderColor,
12 | borderRadius
13 | } from "styled-system"
14 |
15 | const Samp = styled('samp', { shouldForwardProp })(
16 | space,
17 | width,
18 | fontSize,
19 | fontWeight,
20 | lineHeight,
21 | color,
22 | borders,
23 | borderColor,
24 | borderRadius,
25 | {
26 | boxSizing: "border-box",
27 | fontFamily: "monospace, monospace"
28 | }
29 | )
30 |
31 | Samp.defaultProps = {
32 | fontSize: 2
33 | }
34 |
35 | export default Samp
36 |
--------------------------------------------------------------------------------
/src/elements/Section.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | flex,
9 | flexWrap,
10 | alignItems,
11 | justifyContent,
12 | fontSize,
13 | color,
14 | borders,
15 | borderColor,
16 | borderRadius,
17 | gridGap,
18 | gridColumnGap,
19 | gridRowGap,
20 | gridColumn,
21 | gridRow,
22 | gridAutoFlow,
23 | gridAutoColumns,
24 | gridAutoRows,
25 | gridTemplateColumns,
26 | gridTemplateRows,
27 | gridTemplateAreas,
28 | gridArea,
29 | } from "styled-system"
30 |
31 | const Section = styled('section', { shouldForwardProp })(
32 | space,
33 | width,
34 | maxWidth,
35 | display,
36 | flex,
37 | flexWrap,
38 | alignItems,
39 | justifyContent,
40 | fontSize,
41 | color,
42 | borders,
43 | borderColor,
44 | borderRadius,
45 | gridGap,
46 | gridColumnGap,
47 | gridRowGap,
48 | gridColumn,
49 | gridRow,
50 | gridAutoFlow,
51 | gridAutoColumns,
52 | gridAutoRows,
53 | gridTemplateColumns,
54 | gridTemplateRows,
55 | gridTemplateAreas,
56 | gridArea,
57 | {
58 | boxSizing: "border-box"
59 | }
60 | )
61 |
62 | Section.defaultProps = {
63 | width: 1
64 | }
65 |
66 | export default Section
67 |
--------------------------------------------------------------------------------
/src/elements/Select.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {space, display, width} from 'styled-system'
4 |
5 | const Select = styled('select', { shouldForwardProp })(
6 | space, display, width, {}
7 | )
8 |
9 | Select.defaultProps = {}
10 |
11 | export default Select
12 |
--------------------------------------------------------------------------------
/src/elements/Small.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | fontSize,
7 | fontWeight,
8 | lineHeight,
9 | textStyle,
10 | color,
11 | } from 'styled-system'
12 |
13 | const Small = styled('small', { shouldForwardProp })(
14 | space,
15 | width,
16 | fontSize,
17 | fontWeight,
18 | lineHeight,
19 | textStyle,
20 | color,
21 | {},
22 | )
23 |
24 | Small.defaultProps = {}
25 |
26 | export default Small
27 |
--------------------------------------------------------------------------------
/src/elements/Span.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | fontWeight,
9 | fontFamily,
10 | lineHeight,
11 | textAlign,
12 | textStyle,
13 | color,
14 | borders,
15 | borderRadius,
16 | } from 'styled-system'
17 |
18 | const Span = styled('span', { shouldForwardProp })(
19 | space,
20 | width,
21 | display,
22 | fontFamily,
23 | fontSize,
24 | fontWeight,
25 | lineHeight,
26 | textAlign,
27 | textStyle,
28 | color,
29 | borders,
30 | borderRadius,
31 | {},
32 | )
33 |
34 | Span.defaultProps = {
35 | color: 'inherit'
36 | }
37 |
38 | export default Span
39 |
--------------------------------------------------------------------------------
/src/elements/Strong.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {space, fontSize, fontWeight, color} from 'styled-system'
4 |
5 | const Strong = styled('strong', { shouldForwardProp })(
6 | space, fontSize, fontWeight, color, {}
7 | )
8 |
9 | Strong.defaultProps = {
10 | fontWeight: 'bolder',
11 | }
12 |
13 | export default Strong
14 |
--------------------------------------------------------------------------------
/src/elements/Sub.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {space, fontSize, fontWeight, lineHeight, color} from 'styled-system'
4 |
5 | const Sub = styled('sub', { shouldForwardProp })(
6 | space, fontSize, fontWeight, lineHeight, color, {}
7 | )
8 |
9 | Sub.defaultProps = {}
10 |
11 | export default Sub
12 |
--------------------------------------------------------------------------------
/src/elements/Summary.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | display,
6 | width,
7 | fontSize,
8 | fontWeight,
9 | textAlign,
10 | color,
11 | } from 'styled-system'
12 |
13 | const Summary = styled('summary', { shouldForwardProp })(
14 | space,
15 | display,
16 | width,
17 | fontSize,
18 | fontWeight,
19 | textAlign,
20 | color,
21 | {},
22 | )
23 |
24 | Summary.defaultProps = {}
25 |
26 | export default Summary
27 |
--------------------------------------------------------------------------------
/src/elements/Sup.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | fontSize,
7 | fontWeight,
8 | lineHeight,
9 | borderRadius,
10 | color,
11 | } from 'styled-system'
12 |
13 | const Sup = styled('sup', { shouldForwardProp })(
14 | space, fontSize, fontWeight, lineHeight, color, borderRadius, {}
15 | )
16 |
17 | Sup.defaultProps = {}
18 |
19 | export default Sup
20 |
--------------------------------------------------------------------------------
/src/elements/Svg.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {color, display, width, maxWidth, height} from 'styled-system'
4 |
5 | const Svg = styled('svg', { shouldForwardProp })(
6 | color, display, width, maxWidth, height,
7 | {
8 | boxSizing: 'border-box',
9 | })
10 |
11 | Svg.defaultProps = {
12 | fill: 'currentColor'
13 | }
14 |
15 | export default Svg
16 |
--------------------------------------------------------------------------------
/src/elements/Table.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {space, width, maxWidth, fontSize, color} from 'styled-system'
4 |
5 | const layout = props => ({
6 | tableLayout: props.layout ? props.layout : 'default',
7 | })
8 |
9 | const Table = styled('table', { shouldForwardProp })(
10 | space,
11 | width,
12 | maxWidth,
13 | fontSize,
14 | color,
15 | layout,
16 | {
17 | borderCollapse: 'collapse',
18 | cellSpacing: 0,
19 | cellPadding: 0,
20 | }
21 | )
22 |
23 | Table.defaultProps = {
24 | width: 1,
25 | layout: 'initial',
26 | }
27 |
28 | export default Table
29 |
--------------------------------------------------------------------------------
/src/elements/Tbody.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import { space, width, fontSize, color } from "styled-system"
4 |
5 | const Tbody = styled('tbody', { shouldForwardProp })(
6 | space, width, fontSize, color, {}
7 | )
8 |
9 | Tbody.defaultProps = {
10 | width: 1
11 | }
12 |
13 | export default Tbody
14 |
--------------------------------------------------------------------------------
/src/elements/Td.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | fontSize,
8 | fontWeight,
9 | textAlign,
10 | color,
11 | borders,
12 | borderColor,
13 | } from 'styled-system'
14 |
15 | const Td = styled('td', { shouldForwardProp })(
16 | space,
17 | width,
18 | maxWidth,
19 | fontSize,
20 | fontWeight,
21 | textAlign,
22 | color,
23 | borders,
24 | borderColor,
25 | {},
26 | )
27 |
28 | Td.defaultProps = {}
29 |
30 | export default Td
31 |
--------------------------------------------------------------------------------
/src/elements/Textarea.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | display,
5 | space,
6 | width,
7 | maxWidth,
8 | fontSize,
9 | color,
10 | borders,
11 | borderRadius
12 | } from "styled-system"
13 |
14 | const Textarea = styled('textarea', { shouldForwardProp })(
15 | display,
16 | space,
17 | width,
18 | maxWidth,
19 | fontSize,
20 | color,
21 | borders,
22 | borderRadius,
23 | {
24 | overflow: "auto"
25 | }
26 | )
27 |
28 | Textarea.defaultProps = {}
29 |
30 | export default Textarea
31 |
--------------------------------------------------------------------------------
/src/elements/Tfoot.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {space, width, fontSize, color} from 'styled-system'
4 |
5 | const Tfoot = styled('tfoot', { shouldForwardProp })(
6 | space, width, fontSize, color, {}
7 | )
8 |
9 | Tfoot.defaultProps = {
10 | width: 1,
11 | }
12 |
13 | export default Tfoot
14 |
--------------------------------------------------------------------------------
/src/elements/Th.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | fontSize,
7 | fontWeight,
8 | textAlign,
9 | color,
10 | borders,
11 | borderColor
12 | } from "styled-system"
13 |
14 | const Th = styled('th', { shouldForwardProp })(
15 | space,
16 | width,
17 | fontSize,
18 | fontWeight,
19 | textAlign,
20 | color,
21 | borders,
22 | borderColor,
23 | {}
24 | )
25 |
26 | Th.defaultProps = {
27 | fontWeight: "bold"
28 | }
29 |
30 | export default Th
31 |
--------------------------------------------------------------------------------
/src/elements/Thead.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import { space, width, fontSize, color } from "styled-system"
4 |
5 | const Thead = styled('thead', { shouldForwardProp })(
6 | space, width, fontSize, color, {}
7 | )
8 |
9 | Thead.defaultProps = {
10 | width: 1
11 | }
12 |
13 | export default Thead
14 |
--------------------------------------------------------------------------------
/src/elements/Time.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | display,
7 | fontSize,
8 | fontWeight,
9 | textAlign,
10 | color,
11 | borders,
12 | borderColor,
13 | } from 'styled-system'
14 |
15 | const Time = styled('time', { shouldForwardProp })(
16 | space,
17 | width,
18 | display,
19 | fontSize,
20 | fontWeight,
21 | textAlign,
22 | color,
23 | borders,
24 | borderColor,
25 | {},
26 | )
27 |
28 | Time.defaultProps = {}
29 |
30 | export default Time
31 |
--------------------------------------------------------------------------------
/src/elements/Tr.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {space, fontSize, color} from 'styled-system'
4 |
5 | const Tr = styled('tr', { shouldForwardProp })(
6 | space, fontSize, color, {}
7 | )
8 |
9 | Tr.defaultProps = {}
10 |
11 | export default Tr
12 |
--------------------------------------------------------------------------------
/src/elements/U.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {space, width, fontSize, fontWeight, color} from 'styled-system'
4 |
5 | const U = styled('u', { shouldForwardProp })(
6 | space, width, fontSize, fontWeight, color, {}
7 | )
8 |
9 | U.defaultProps = {}
10 |
11 | export default U
12 |
--------------------------------------------------------------------------------
/src/elements/Ul.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {
4 | space,
5 | width,
6 | maxWidth,
7 | display,
8 | alignItems,
9 | justifyContent,
10 | fontSize,
11 | color,
12 | borders,
13 | borderColor,
14 | borderRadius,
15 | gridGap,
16 | gridColumnGap,
17 | gridRowGap,
18 | gridColumn,
19 | gridRow,
20 | gridAutoFlow,
21 | gridAutoColumns,
22 | gridAutoRows,
23 | gridTemplateColumns,
24 | gridTemplateRows,
25 | gridTemplateAreas,
26 | gridArea,
27 | } from "styled-system"
28 |
29 | const Ul = styled('ul', { shouldForwardProp })(
30 | space,
31 | width,
32 | maxWidth,
33 | display,
34 | alignItems,
35 | justifyContent,
36 | fontSize,
37 | color,
38 | borders,
39 | borderColor,
40 | borderRadius,
41 | gridGap,
42 | gridColumnGap,
43 | gridRowGap,
44 | gridColumn,
45 | gridRow,
46 | gridAutoFlow,
47 | gridAutoColumns,
48 | gridAutoRows,
49 | gridTemplateColumns,
50 | gridTemplateRows,
51 | gridTemplateAreas,
52 | gridArea,
53 | {
54 | boxSizing: "border-box"
55 | }
56 | )
57 |
58 | Ul.defaultProps = {
59 | ml: 0,
60 | pt: 0
61 | }
62 |
63 | export default Ul
64 |
--------------------------------------------------------------------------------
/src/elements/Var.js:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled"
2 | import shouldForwardProp from "@styled-system/should-forward-prop"
3 | import {space, width, fontSize, color} from 'styled-system'
4 | import theme from '../theme'
5 |
6 | const Var = styled('var', { shouldForwardProp })(
7 | space, width, fontSize, color,
8 | {
9 | fontFamily: 'monaco, monospace',
10 | })
11 |
12 | Var.defaultProps = {}
13 |
14 | export default Var
15 |
--------------------------------------------------------------------------------
/src/elements/index.js:
--------------------------------------------------------------------------------
1 | import A from './A'
2 | import Abbr from './Abbr'
3 | import Address from './Address'
4 | import Article from './Article'
5 | import Aside from './Aside'
6 | import B from './B'
7 | import Br from './Br'
8 | import Button from './Button'
9 | import Cite from './Cite'
10 | import Code from './Code'
11 | import Data from './Data'
12 | import Dd from './Dd'
13 | import Details from './Details'
14 | import Div from './Div'
15 | import Dl from './Dl'
16 | import Dt from './Dt'
17 | import Em from './Em'
18 | import Fieldset from './Fieldset'
19 | import Footer from './Footer'
20 | import Form from './Form'
21 | import H1 from './H1'
22 | import H2 from './H2'
23 | import H3 from './H3'
24 | import H4 from './H4'
25 | import H5 from './H5'
26 | import H6 from './H6'
27 | import Header from './Header'
28 | import Hr from './Hr'
29 | import I from './I'
30 | import Img from './Img'
31 | import Input from './Input'
32 | import InputCheckbox from './InputCheckbox'
33 | import InputEmail from './InputEmail'
34 | import InputFile from './InputFile'
35 | import InputNumber from './InputNumber'
36 | import InputPassword from './InputPassword'
37 | import InputRadio from './InputRadio'
38 | import InputSearch from './InputSearch'
39 | import InputSubmit from './InputSubmit'
40 | import InputTelephone from './InputTelephone'
41 | import InputText from './InputText'
42 | import InputUrl from './InputUrl'
43 | import Kbd from './Kbd'
44 | import Label from './Label'
45 | import Legend from './Legend'
46 | import Li from './Li'
47 | import Main from './Main'
48 | import Nav from './Nav'
49 | import Ol from './Ol'
50 | import P from './P'
51 | import Path from './Path'
52 | import Pre from './Pre'
53 | import Progress from './Progress'
54 | import Q from './Q'
55 | import S from './S'
56 | import Samp from './Samp'
57 | import Section from './Section'
58 | import Select from './Select'
59 | import Small from './Small'
60 | import Span from './Span'
61 | import Strong from './Strong'
62 | import Sub from './Sub'
63 | import Summary from './Summary'
64 | import Sup from './Sup'
65 | import Svg from './Svg'
66 | import Table from './Table'
67 | import Tbody from './Tbody'
68 | import Td from './Td'
69 | import Textarea from './Textarea'
70 | import Tfoot from './Tfoot'
71 | import Th from './Th'
72 | import Thead from './Thead'
73 | import Time from './Time'
74 | import Tr from './Tr'
75 | import U from './U'
76 | import Ul from './Ul'
77 | import Var from './Var'
78 |
79 | export {
80 | A,
81 | Abbr,
82 | Address,
83 | Article,
84 | Aside,
85 | B,
86 | Br,
87 | Button,
88 | Cite,
89 | Code,
90 | Data,
91 | Dd,
92 | Details,
93 | Div,
94 | Dl,
95 | Dt,
96 | Em,
97 | Fieldset,
98 | Footer,
99 | Form,
100 | H1,
101 | H2,
102 | H3,
103 | H4,
104 | H5,
105 | H6,
106 | Header,
107 | Hr,
108 | I,
109 | Img,
110 | Input,
111 | InputCheckbox,
112 | InputEmail,
113 | InputFile,
114 | InputNumber,
115 | InputPassword,
116 | InputRadio,
117 | InputSearch,
118 | InputSubmit,
119 | InputTelephone,
120 | InputText,
121 | InputUrl,
122 | Kbd,
123 | Label,
124 | Legend,
125 | Li,
126 | Main,
127 | Nav,
128 | Ol,
129 | P,
130 | Path,
131 | Pre,
132 | Progress,
133 | Q,
134 | S,
135 | Samp,
136 | Section,
137 | Select,
138 | Small,
139 | Span,
140 | Strong,
141 | Sub,
142 | Summary,
143 | Sup,
144 | Svg,
145 | Table,
146 | Tbody,
147 | Td,
148 | Textarea,
149 | Tfoot,
150 | Th,
151 | Thead,
152 | Time,
153 | Tr,
154 | U,
155 | Ul,
156 | Var
157 | }
158 |
--------------------------------------------------------------------------------
/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | padding: 0;
4 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
5 | "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
6 | sans-serif;
7 | -webkit-font-smoothing: antialiased;
8 | -moz-osx-font-smoothing: grayscale;
9 | }
10 |
11 | code {
12 | font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
13 | monospace;
14 | }
15 |
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import './index.css';
4 | import App from './App';
5 | import * as serviceWorker from './serviceWorker';
6 |
7 | ReactDOM.render( , document.getElementById('root'));
8 |
9 | // If you want your app to work offline and load faster, you can change
10 | // unregister() to register() below. Note this comes with some pitfalls.
11 | // Learn more about service workers: https://bit.ly/CRA-PWA
12 | serviceWorker.unregister();
13 |
--------------------------------------------------------------------------------
/src/jsx.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import * as components from './elements'
3 |
4 | const elements = {}
5 | Object.keys(components).forEach(key => {
6 | elements[key.toLowerCase()] = components[key]
7 | })
8 |
9 | export const jsx = (type, props, ...children) => {
10 | const el = elements[type] || type
11 | return React.createElement.apply(undefined, [
12 | el,
13 | props,
14 | ...children
15 | ])
16 | }
17 |
18 | export default jsx
19 |
--------------------------------------------------------------------------------
/src/logo.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/pages/Components.js:
--------------------------------------------------------------------------------
1 | /** @jsx jsx */
2 | import jsx from '../jsx'
3 | import React from 'react'
4 | import theme from '../theme'
5 | import themeSyntax from '../theme-syntax'
6 | import {
7 | LiveProvider,
8 | LiveEditor,
9 | LiveError,
10 | LivePreview
11 | } from 'react-live'
12 |
13 | import Logo from '../components/Logo'
14 | import Container from '../components/Container'
15 | import Card from '../components/Card'
16 |
17 | function Home() {
18 | return (
19 |
20 |
29 |
30 |
31 |
32 | Card
33 |
47 |
48 | `
49 | }>
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
71 |
72 | );
73 | }
74 |
75 | export default Home
76 |
--------------------------------------------------------------------------------
/src/pages/Example.js:
--------------------------------------------------------------------------------
1 | /** @jsx jsx */
2 | import jsx from '../jsx'
3 | import React from 'react'
4 | import theme from '../theme'
5 |
6 | function Page() {
7 | return (
8 |
9 |
10 |
11 | );
12 | }
13 |
14 | export default Page
15 |
--------------------------------------------------------------------------------
/src/pages/Home.js:
--------------------------------------------------------------------------------
1 | /** @jsx jsx */
2 | import jsx from '../jsx'
3 | import React from 'react'
4 | import theme from '../theme'
5 |
6 | import Logo from '../components/Logo'
7 | import Container from '../components/Container'
8 |
9 | function Home() {
10 | return (
11 |
12 |
21 |
22 |
23 | Build, design, and style UI at the speed of light
24 |
25 | Tachyons +
26 | Styled-system +
27 | Emotion +
28 | Create React App
29 |
30 |
32 | Styles & Documentation
33 |
34 |
35 |
36 |
48 |
49 | );
50 | }
51 |
52 | export default Home
53 |
--------------------------------------------------------------------------------
/src/pages/Playground.js:
--------------------------------------------------------------------------------
1 | /** @jsx jsx */
2 | import jsx from '../jsx'
3 |
4 | import React from 'react'
5 | import theme from '../theme'
6 | import themeSyntax from '../theme-syntax'
7 | import {
8 | LiveProvider,
9 | LiveEditor,
10 | LiveError,
11 | LivePreview
12 | } from 'react-live'
13 |
14 | import Logo from '../components/Logo'
15 | import Container from '../components/Container'
16 | import Card from '../components/Card'
17 |
18 | import A from '../elements/A'
19 | import Abbr from '../elements/Abbr'
20 | import Address from '../elements/Address'
21 | import Article from '../elements/Article'
22 | import Aside from '../elements/Aside'
23 | import B from '../elements/B'
24 | import Br from '../elements/Br'
25 | import Button from '../elements/Button'
26 | import Cite from '../elements/Cite'
27 | import Code from '../elements/Code'
28 | import Data from '../elements/Data'
29 | import Dd from '../elements/Dd'
30 | import Details from '../elements/Details'
31 | import Div from '../elements/Div'
32 | import Dl from '../elements/Dl'
33 | import Dt from '../elements/Dt'
34 | import Em from '../elements/Em'
35 | import Fieldset from '../elements/Fieldset'
36 | import Footer from '../elements/Footer'
37 | import Form from '../elements/Form'
38 | import H1 from '../elements/H1'
39 | import H2 from '../elements/H2'
40 | import H3 from '../elements/H3'
41 | import H4 from '../elements/H4'
42 | import H5 from '../elements/H5'
43 | import H6 from '../elements/H6'
44 | import Header from '../elements/Header'
45 | import Hr from '../elements/Hr'
46 | import I from '../elements/I'
47 | import Img from '../elements/Img'
48 | import Input from '../elements/Input'
49 | import InputCheckbox from '../elements/InputCheckbox'
50 | import InputEmail from '../elements/InputEmail'
51 | import InputFile from '../elements/InputFile'
52 | import InputNumber from '../elements/InputNumber'
53 | import InputPassword from '../elements/InputPassword'
54 | import InputRadio from '../elements/InputRadio'
55 | import InputSearch from '../elements/InputSearch'
56 | import InputSubmit from '../elements/InputSubmit'
57 | import InputTelephone from '../elements/InputTelephone'
58 | import InputText from '../elements/InputText'
59 | import InputUrl from '../elements/InputUrl'
60 | import Kbd from '../elements/Kbd'
61 | import Label from '../elements/Label'
62 | import Legend from '../elements/Legend'
63 | import Li from '../elements/Li'
64 | import Main from '../elements/Main'
65 | import Nav from '../elements/Nav'
66 | import Ol from '../elements/Ol'
67 | import P from '../elements/P'
68 | import Path from '../elements/Path'
69 | import Pre from '../elements/Pre'
70 | import Progress from '../elements/Progress'
71 | import Q from '../elements/Q'
72 | import S from '../elements/S'
73 | import Samp from '../elements/Samp'
74 | import Section from '../elements/Section'
75 | import Select from '../elements/Select'
76 | import Small from '../elements/Small'
77 | import Span from '../elements/Span'
78 | import Strong from '../elements/Strong'
79 | import Sub from '../elements/Sub'
80 | import Summary from '../elements/Summary'
81 | import Sup from '../elements/Sup'
82 | import Svg from '../elements/Svg'
83 | import Table from '../elements/Table'
84 | import Tbody from '../elements/Tbody'
85 | import Td from '../elements/Td'
86 | import Textarea from '../elements/Textarea'
87 | import Tfoot from '../elements/Tfoot'
88 | import Th from '../elements/Th'
89 | import Thead from '../elements/Thead'
90 | import Time from '../elements/Time'
91 | import Tr from '../elements/Tr'
92 | import U from '../elements/U'
93 | import Ul from '../elements/Ul'
94 | import Var from '../elements/Var'
95 |
96 |
97 | function Home() {
98 | return (
99 |
100 |
109 |
110 |
111 |
114 |
115 |
116 | Experiment with semantic markup + css-in-js
117 | The Playground
118 | If you've wanted to try out emotion, react, and styled-system this playground is for you. Find the code editor at the bottom of the page. You can use any html element, but to use styled-system styling props you must capitalize the elements e.g. h1 => H1.
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
Category Label
127 |
128 |
129 |
130 |
131 |
The main title content
132 |
A sample subtitle example
133 |
Readers want what is important to be clearly laid out; they will not read what is too troublesome.
134 |
Read More
135 |
136 |
137 |
138 |
139 |
140 |
141 |
Category Label
142 |
143 |
144 |
145 |
146 |
The main title content
147 |
A sample subtitle example
148 |
Readers want what is important to be clearly laid out; they will not read what is too troublesome.
149 |
Read More
150 |
151 |
152 |
153 |
154 |
155 |
156 |
Category Label
157 |
158 |
159 |
160 |
161 |
The main title content
162 |
A sample subtitle example
163 |
Readers want what is important to be clearly laid out; they will not read what is too troublesome.
164 |
Read More
165 |
166 |
167 |
168 |
169 |
170 |
171 | `
172 | }>
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
193 |
194 | );
195 | }
196 |
197 | export default Home
198 |
--------------------------------------------------------------------------------
/src/pages/Styles.js:
--------------------------------------------------------------------------------
1 | /** @jsx jsx */
2 | import jsx from '../jsx'
3 | import React from 'react'
4 | import theme from '../theme'
5 | import chroma from 'chroma-js'
6 |
7 | import Logo from '../components/Logo'
8 | import Container from '../components/Container'
9 |
10 | const fontSizes = [ ...theme.fontSizes ]
11 | const space = [ ...theme.space ]
12 |
13 | function Styles() {
14 | return (
15 |
16 |
25 |
26 |
27 | Typefaces
28 | {Object.keys(theme.typefaces).map((keyName, i) => (
29 |
30 |
31 | {keyName === 'sansSerif'? 'Sans Serif':keyName}
32 |
33 |
{theme.typefaces[keyName]}
37 |
38 |
27/9/19
39 |
An engaging headline
40 |
41 | Lorem ipsum dolor sit amet, consetetur sadipscing elitr,
42 | sed diam nonumy eirmod tempor invidunt ut labore et dolore
43 | magna aliquyam erat.
44 |
45 |
46 | Lorem ipsum dolor sit amet, consetetur sadipscing elitr,
47 | sed diam nonumy eirmod tempor invidunt ut labore et dolore
48 | magna aliquyam erat, sed diam voluptua. At vero eos et
49 | accusam et justo duo dolores et ea rebum. Stet clita kasd
50 | gubergren, no sea takimata sanctus est Lorem ipsum dolor
51 | sit amet. Sed diam voluptua. At vero eos et accusam et
52 | justo duo dolores et ea rebum. Stet clita kasd gubergren,
53 | no sea takimata sanctus est Lorem ipsum dolor sit amet.
54 |
55 |
56 |
57 | ))}
58 |
59 |
60 | Type Scale
61 |
62 | {fontSizes.reverse().map((fontSize, i) => (
63 | <>
64 |
{fontSize}px theme.fontSizes[{theme.fontSizes.length - i - 1}]
65 |
66 | The quick brown fox jumped
67 |
68 | >
69 | ))}
70 |
71 |
72 |
73 | Leading
74 |
75 | {theme.lineHeights.map((lineHeight, i) => (
76 |
77 |
Line Height: {lineHeight}
78 |
79 | Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
80 | tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
81 |
82 |
83 | At
84 | vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
85 | no sea takimata sanctus est Lorem ipsum dolor sit amet.
86 |
87 |
88 | ))}
89 |
90 |
91 |
92 | Colors
93 |
94 | {Object.keys(theme.colors).map((keyName, i) => (
95 |
96 |
97 |
98 | {chroma.contrast(theme.colors[keyName], 'black').toFixed(2)}
99 |
100 |
101 |
102 | Aa
103 |
104 |
105 | {chroma.contrast(theme.colors[keyName], 'white').toFixed(2)}
106 |
107 |
108 | Aa
109 |
110 | {keyName}
111 | {theme.colors[keyName]}
112 |
113 | ))}
114 |
115 |
116 |
117 | Spacing Scale
118 |
119 |
120 | {space.reverse().map((space, i) => (
121 |
122 | ))}
123 |
124 |
125 |
126 | {space.reverse().map((space, i) => (
127 |
128 | ))}
129 |
130 |
131 | {space.reverse().map((space, i) => (
132 |
133 | ))}
134 |
135 |
136 |
137 |
138 |
139 | Border Widths
140 |
141 | {theme.borderWidths.map((borderWidth, i) => (
142 | <>
143 |
146 | >
147 | ))}
148 |
149 |
150 |
151 | Border Radii
152 |
153 | {theme.radii.map((radius, i) => (
154 | <>
155 |
156 |
157 |
{radius}
158 |
159 | >
160 | ))}
161 |
162 |
163 |
164 |
165 | );
166 | }
167 |
168 | export default Styles
169 |
--------------------------------------------------------------------------------
/src/serviceWorker.js:
--------------------------------------------------------------------------------
1 | // This optional code is used to register a service worker.
2 | // register() is not called by default.
3 |
4 | // This lets the app load faster on subsequent visits in production, and gives
5 | // it offline capabilities. However, it also means that developers (and users)
6 | // will only see deployed updates on subsequent visits to a page, after all the
7 | // existing tabs open on the page have been closed, since previously cached
8 | // resources are updated in the background.
9 |
10 | // To learn more about the benefits of this model and instructions on how to
11 | // opt-in, read https://bit.ly/CRA-PWA
12 |
13 | const isLocalhost = Boolean(
14 | window.location.hostname === 'localhost' ||
15 | // [::1] is the IPv6 localhost address.
16 | window.location.hostname === '[::1]' ||
17 | // 127.0.0.1/8 is considered localhost for IPv4.
18 | window.location.hostname.match(
19 | /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
20 | )
21 | );
22 |
23 | export function register(config) {
24 | if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
25 | // The URL constructor is available in all browsers that support SW.
26 | const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);
27 | if (publicUrl.origin !== window.location.origin) {
28 | // Our service worker won't work if PUBLIC_URL is on a different origin
29 | // from what our page is served on. This might happen if a CDN is used to
30 | // serve assets; see https://github.com/facebook/create-react-app/issues/2374
31 | return;
32 | }
33 |
34 | window.addEventListener('load', () => {
35 | const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
36 |
37 | if (isLocalhost) {
38 | // This is running on localhost. Let's check if a service worker still exists or not.
39 | checkValidServiceWorker(swUrl, config);
40 |
41 | // Add some additional logging to localhost, pointing developers to the
42 | // service worker/PWA documentation.
43 | navigator.serviceWorker.ready.then(() => {
44 | console.log(
45 | 'This web app is being served cache-first by a service ' +
46 | 'worker. To learn more, visit https://bit.ly/CRA-PWA'
47 | );
48 | });
49 | } else {
50 | // Is not localhost. Just register service worker
51 | registerValidSW(swUrl, config);
52 | }
53 | });
54 | }
55 | }
56 |
57 | function registerValidSW(swUrl, config) {
58 | navigator.serviceWorker
59 | .register(swUrl)
60 | .then(registration => {
61 | registration.onupdatefound = () => {
62 | const installingWorker = registration.installing;
63 | if (installingWorker == null) {
64 | return;
65 | }
66 | installingWorker.onstatechange = () => {
67 | if (installingWorker.state === 'installed') {
68 | if (navigator.serviceWorker.controller) {
69 | // At this point, the updated precached content has been fetched,
70 | // but the previous service worker will still serve the older
71 | // content until all client tabs are closed.
72 | console.log(
73 | 'New content is available and will be used when all ' +
74 | 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'
75 | );
76 |
77 | // Execute callback
78 | if (config && config.onUpdate) {
79 | config.onUpdate(registration);
80 | }
81 | } else {
82 | // At this point, everything has been precached.
83 | // It's the perfect time to display a
84 | // "Content is cached for offline use." message.
85 | console.log('Content is cached for offline use.');
86 |
87 | // Execute callback
88 | if (config && config.onSuccess) {
89 | config.onSuccess(registration);
90 | }
91 | }
92 | }
93 | };
94 | };
95 | })
96 | .catch(error => {
97 | console.error('Error during service worker registration:', error);
98 | });
99 | }
100 |
101 | function checkValidServiceWorker(swUrl, config) {
102 | // Check if the service worker can be found. If it can't reload the page.
103 | fetch(swUrl)
104 | .then(response => {
105 | // Ensure service worker exists, and that we really are getting a JS file.
106 | const contentType = response.headers.get('content-type');
107 | if (
108 | response.status === 404 ||
109 | (contentType != null && contentType.indexOf('javascript') === -1)
110 | ) {
111 | // No service worker found. Probably a different app. Reload the page.
112 | navigator.serviceWorker.ready.then(registration => {
113 | registration.unregister().then(() => {
114 | window.location.reload();
115 | });
116 | });
117 | } else {
118 | // Service worker found. Proceed as normal.
119 | registerValidSW(swUrl, config);
120 | }
121 | })
122 | .catch(() => {
123 | console.log(
124 | 'No internet connection found. App is running in offline mode.'
125 | );
126 | });
127 | }
128 |
129 | export function unregister() {
130 | if ('serviceWorker' in navigator) {
131 | navigator.serviceWorker.ready.then(registration => {
132 | registration.unregister();
133 | });
134 | }
135 | }
136 |
--------------------------------------------------------------------------------
/src/theme-syntax.js:
--------------------------------------------------------------------------------
1 | const theme = {
2 | plain: {
3 | backgroundColor: "#f2f3fe",
4 | color: "#000000"
5 | },
6 | styles: [
7 | {
8 | types: ["comment", "prolog", "doctype", "cdata", "punctuation"],
9 | style: {
10 | color: "#000000"
11 | }
12 | },
13 | {
14 | types: ["namespace"],
15 | style: {
16 | opacity: 0.7
17 | }
18 | },
19 | {
20 | types: ["tag", "operator", "number"],
21 | style: {
22 | color: "#000000"
23 | }
24 | },
25 | {
26 | types: ["property", "function"],
27 | style: {
28 | color: "#9a86fd"
29 | }
30 | },
31 | {
32 | types: ["tag-id", "selector", "atrule-id"],
33 | style: {
34 | color: "#000000"
35 | }
36 | },
37 | {
38 | types: ["attr-name"],
39 | style: {
40 | color: "#000000"
41 | }
42 | },
43 | {
44 | types: [
45 | "boolean",
46 | "string",
47 | "entity",
48 | "url",
49 | "attr-value",
50 | "keyword",
51 | "control",
52 | "directive",
53 | "unit",
54 | "statement",
55 | "regex",
56 | "at-rule",
57 | "placeholder",
58 | "variable"
59 | ],
60 | style: {
61 | color: "#000000"
62 | }
63 | },
64 | {
65 | types: ["deleted"],
66 | style: {
67 | textDecorationLine: "line-through"
68 | }
69 | },
70 | {
71 | types: ["inserted"],
72 | style: {
73 | textDecorationLine: "underline"
74 | }
75 | },
76 | {
77 | types: ["italic"],
78 | style: {
79 | fontStyle: "italic"
80 | }
81 | },
82 | {
83 | types: ["important", "bold"],
84 | style: {
85 | fontWeight: "bold"
86 | }
87 | },
88 | {
89 | types: ["important"],
90 | style: {
91 | color: "#000000"
92 | }
93 | }
94 | ]
95 | };
96 |
97 | export default theme
98 |
--------------------------------------------------------------------------------
/src/theme.js:
--------------------------------------------------------------------------------
1 | const theme = {
2 | breakpoints: [
3 | '30em', '60em'
4 | ],
5 | space: [
6 | 0, 4, 8, 16, 32, 64, 128, 256, 512
7 | ],
8 | fontSizes: [
9 | 12, 16, 20, 24, 36, 48, 80, 96, 128
10 | ],
11 | borderWidths: [
12 | 0, '1px', '2px', '4px', '8px', '16px', '32px'
13 | ],
14 | radii: [
15 | 0, '2px', '4px', '16px', '9999px', '100%'
16 | ],
17 | lineHeights: [
18 | '1.0',
19 | '1.25',
20 | '1.5'
21 | ],
22 | measures: [
23 | '20em', '30em', '34em'
24 | ],
25 | typefaces: {
26 | serif: 'athelas, georgia, times, serif',
27 | sansSerif: 'system-ui, -apple-system, BlinkMacSystemFont, "avenir next", avenir, "helvetica neue", helvetica, ubuntu, roboto, noto, "segoe ui", arial, sans-serif', mono: 'Consolas, monaco, monospace'
28 | },
29 | textStyles: {
30 | caps: {
31 | textTransform: 'uppercase',
32 | letterSpacing: '0.1em'
33 | },
34 | 'tracked-tight': {
35 | letterSpacing: '-0.05em'
36 | },
37 | copy: {
38 | lineHeight: 1.5,
39 | maxWidth: '30em'
40 | },
41 | title: {
42 | lineHeight: 1.25,
43 | maxWidth: '30em'
44 | },
45 | capitalize: {
46 | textTransform: 'capitalize'
47 | }
48 | },
49 | colors: {
50 | 'dark-red': '#e7040f',
51 | 'red': '#ff4136',
52 | 'light-red': '#ff725c',
53 | 'washed-red': '#ffdfdf',
54 | 'orange': '#ff6300',
55 | 'gold': '#ffb700',
56 | 'yellow': '#ffd700',
57 | 'light-yellow': '#fbf1a9',
58 | 'washed-yellow': '#fffceb',
59 | 'purple': '#5e2ca5',
60 | 'light-purple': '#a463f2',
61 | 'dark-pink': '#d5008f',
62 | 'hot-pink': '#ff41b4',
63 | 'pink': '#ff80cc',
64 | 'light-pink': '#ffa3d7',
65 | 'dark-green': '#137752',
66 | 'green': '#19a974',
67 | 'light-green': '#9eebcf',
68 | 'washed-green': '#e8fdf5',
69 | 'navy': '#001b44',
70 | 'dark-blue': '#00449e',
71 | 'blue': '#357edd',
72 | 'light-blue': '#96ccff',
73 | 'lightest-blue': '#cdecff',
74 | 'washed-blue': '#f6fffe',
75 | 'black': '#000',
76 | 'near-black': '#111',
77 | 'dark-gray': '#333',
78 | 'mid-gray': '#555',
79 | 'gray': '#777',
80 | 'silver': '#999',
81 | 'light-silver': '#aaa',
82 | 'moon-gray': '#ccc',
83 | 'light-gray': '#eee',
84 | 'near-white': '#f4f4f4',
85 | 'white': '#fff',
86 | 'black-90': 'rgba(0,0,0,.9)',
87 | 'black-80': 'rgba(0,0,0,.8)',
88 | 'black-70': 'rgba(0,0,0,.7)',
89 | 'black-60': 'rgba(0,0,0,.6)',
90 | 'black-50': 'rgba(0,0,0,.5)',
91 | 'black-40': 'rgba(0,0,0,.4)',
92 | 'black-30': 'rgba(0,0,0,.3)',
93 | 'black-20': 'rgba(0,0,0,.2)',
94 | 'black-10': 'rgba(0,0,0,.1)',
95 | 'black-05': 'rgba(0,0,0,.05)',
96 | 'black-025': 'rgba(0,0,0,.025)',
97 | 'black-0125': 'rgba(0,0,0,.0125)',
98 | 'white-90': 'rgba(255,255,255,.9)',
99 | 'white-80': 'rgba(255,255,255,.8)',
100 | 'white-70': 'rgba(255,255,255,.7)',
101 | 'white-60': 'rgba(255,255,255,.6)',
102 | 'white-50': 'rgba(255,255,255,.5)',
103 | 'white-40': 'rgba(255,255,255,.4)',
104 | 'white-30': 'rgba(255,255,255,.3)',
105 | 'white-20': 'rgba(255,255,255,.2)',
106 | 'white-10': 'rgba(255,255,255,.1)',
107 | 'white-05': 'rgba(255,255,255,.05)',
108 | 'white-025': 'rgba(255,255,255,.025)',
109 | 'white-0125': 'rgba(255,255,255,.0125)',
110 | },
111 | }
112 |
113 | export default theme
114 |
--------------------------------------------------------------------------------