Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
lib-theme-contructor
Advanced tools
lib-theme-constructor
This package contains a code for generate theme for the lib-react-components package.
npm install --save-dev lib-theme-contructor
// index.js
const path = require('path');
const themeConstructor = require('lib-theme-contructor');
(async () => {
await themeConstructor.createThemes([
{
name: 'theme-name',
entry: path.join(__dirname, './entry/path/to/index.sss'),
out: path.join(__dirname, './output/dir/name'),
options: {
palette: {
primary: '#3D7DFF',
secondary: '#FFC200',
black: '#222D47',
dark_grey: '#5B647D',
grey: '#CBCFD7',
light_grey: '#F5F6FA',
success: '#00D093',
wrong: '#F12727',
white: '#FFFFFF',
},
variables: {
borderRadius: '3px',
buttonSmallHeight: '24px',
buttonMediumHeight: '30px',
buttonLargeHeight: '40px',
buttonSmallFontSize: '12px',
buttonMediumFontSize: '13px',
buttonLargeFontSize: '13px',
inputMediumFontSize: '12px',
inputLargeFontSize: '13px',
inputMediumHeight: '30px',
inputLargeHeight: '40px',
textareaMediumHeight: '150px',
textareaLargeHeight: '200px',
},
},
},
]);
})();
node index.js
Now in your ./output/dir/name
you have theme-name.css
file with new CSS theme.
FAQs
Theme constructor for lib-react-components
We found that lib-theme-contructor 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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.