![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
theme-builder
Advanced tools
Build theme's variables form YAML to consumable format (like JS or SCSS)
npm install theme-builder
const themeBuilder = require('theme-builder');
const themeYaml = fs.readFileSync(pathToYamlFile);
const themeScss = themeBuilder(themeYaml, 'scss');
js
- just a plain javascript objectscss
- SCSS variablesYou have index.yaml
and you want to convert it to SCSS:
generic:
color:
accent: &accent '#1fcff6'
button:
color:
bg: *accent
So, you can call themeBuilder
function like this:
const themeYaml = fs.readFileSync('index.yaml');
themeBuilder(themeYaml, 'scss', {prefix: 'ui'});
and as result you will get string with 2 variables:
$ui-generic-color-accent: #1fcff6;
$ui-button-color-bg: #1fcff6;
You can save the output to .scss
file and use while writing your styles.
function themeBuilder(
// Path to main theme YAML file
themeYaml: string,
// Output format
format: string,
// Optional config
config?: Config
): any
type Config = {
// Processors for additional formats
processors?: {[name: string]: Processor},
// Default theme YAML filepath, will be used as base to extend main YAML
defaultThemeYaml?: string,
// Output unit prefixes, eg. SCSS variables names prefixes
prefix?: string,
}
type Processor = {
compile(obj: object): any
}
FAQs
README
The npm package theme-builder receives a total of 102 weekly downloads. As such, theme-builder popularity was classified as not popular.
We found that theme-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.