2.0.0 • Published 4 years ago
reflexjs v2.0.0
reflexjs
A styling library for building flexible and accessible components with speed.
Quick Start
Step 1
Start by installing the reflexjs
package into your React app.
npm i reflexjs
Step 2
Create a theme with your custom colors and typography.
export default {
fonts: {
body: "system-ui, sans-serif",
heading: '"Avenir Next", sans-serif',
monospace: "Menlo, monospace",
},
colors: {
text: "#000",
background: "#fff",
primary: "#33e",
},
}
Step 3
Wrap your app with the ThemeProvider
from reflexjs.
import * as React from "react"
import theme from "./theme" // highlight-line
import { ThemeProvider } from "reflexjs" // highlight-line
export default function () {
return (
<ThemeProvider theme={theme}>
<App />
</ThemeProvider>
)
}
Styling
You are now ready to style your components using style props.
/** @jsxImportSource "reflexjs" */
export default function CustomButton({ children }) {
return (
<button bg="primary" color="text" p="10px" rounded="5">
{children}
</button>
)
}
Docs
Read the docs at https://reflexjs.org/docs.
2.0.0
4 years ago
2.0.0-rc.0
4 years ago
2.0.0-rc.1
4 years ago
2.0.0-alpha.6
4 years ago
2.0.0-alpha.5
4 years ago
2.0.0-alpha.4
4 years ago
2.0.0-alpha.3
4 years ago
1.1.0
4 years ago
1.0.4
4 years ago
2.0.0-alpha.0
4 years ago
2.0.0-alpha.1
4 years ago
2.0.0-alpha.2
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
1.0.0-alpha.8
4 years ago
1.0.0-alpha.7
4 years ago
1.0.0-alpha.6
4 years ago
1.0.0-alpha.5
4 years ago
1.0.0-alpha.4
4 years ago
1.0.0-alpha.3
4 years ago
1.0.0-alpha.2
4 years ago
1.0.0-alpha.1
4 years ago
0.0.1
10 years ago