Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@coffeekraken/s-theme
Advanced tools
Central class to handle your theme in the Coffeekraken toolchain. It allows you to switch theme|variant, list available themes, 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 class to handle your theme in the Coffeekraken toolchain. It allows you to switch theme|variant, list available themes, etc...
We found that @coffeekraken/s-theme 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.