react-sublime v1.0.51
REACT-SUBLIME
installation
Create react app
npx create-react-app testNavigate to react app
cd testInstall react sublime, sublime components and styles, also sass and tailwind
npm i react-sublime sublime-components sublime-styles tailwindcss sass sass-loaderInitialize react-sublime
npx react-sublime initit will ask you where you want to have your styles you can enter src/styles for example, and your style config will be there this will make a folder with the following schema
- components
- component.scss
- fonts
- font-name
- font-type.otf
- colors.json
- fonts.json
- screens.json
- sizes.jsonBuilding
npx react-sublime buildbuilds output
npx react-sublime devwatches and builds
integrating tailwind css !important
init tailwind, then in config import colors.json and so on
import colors from "./src/styles/colors.json";
import screens from "./src/styles/screens.json";
import sizes from "./src/styles/sizes.json";
import fonts from "./src/styles/fonts.json";
export default {
//other config ...
theme: {
extend: {
colors,
screens,
sizes,
fontFamily: fonts,
},
},
//other config ...
};importing stylesheet
after building the following stylesheet will be available, import it in your css or jsx.
import "{your input directory}/sublime.scss"components
react sublime comes with many useful startup components
see the "sublime-components" repository
styles
react sublime comes with many useful startup components, these startup components have configurable styles
see the "sublime-styles" repository
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago