
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@coffeekraken/s-front
Advanced tools
Central package to handle frontend stuffs like theme, google, etc...
{% extends 'sugar/readme/layouts/main/main.twig' %} {% block body %}
This class allows you to access and manipulate all theme things like accessing configurations, override some, changing theme, etc...
Here's how to use our implementation:
import __STheme from '@coffeekraken/s-theme';
// Get the current theme
const theme = __STheme.getCurrentTheme();
// apply a theme variant
__STheme.setThemeVariant('dark'); // apply dark mode
// Override a color (DOM only)
__STheme.setColor('accent', '#ff0000');
// Access a color
const color = __STheme.getColor('complementary');
// Get the current theme hash
const hash = __STheme.hash();
// remapping a color to another and get back the css vars
const vars = __STheme.remapCssColor('accent', 'error');
// loop on all the theme colors
__STheme.loopOnColors((colorObj) => {
console.log(colorObj);
// {
// name: ...
// schema: ...
// value: {}
// }
});
// and more...
This package has two distinct API. One for the browser
platform, and the other for the node
one.
browser
integrationnode
integrationshared
integrationFor more information about the API of this class, please check our API documentation
{% endblock %}
FAQs
Central package to handle frontend stuffs like theme, google, etc...
The npm package @coffeekraken/s-front receives a total of 1 weekly downloads. As such, @coffeekraken/s-front popularity was classified as not popular.
We found that @coffeekraken/s-front demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.