![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@fylgja/theme
Advanced tools
Helper component for adding theme specific variables to multiple components
Helper component for adding theme specific variables to multiple components.
npm install @fylgja/theme
Then include the component in to your code via;
@use "@fylgja/theme";
This component does not create any CSS.
And only contains some SCSS variable for Fylgja components, that have theme specific styles.
You can use this component to quickly override the specific styles, set to a button, links and more, via;
@use "@fylgja/theme" with (
$color-theme: #00897b,
$color-on-theme: #fff
);
Instead of the default the theme is now a teal color.
And you can also reuse this in your own components,
by importing the @fylgja/theme
or use it directly in your styles via;
@use "@fylgja/theme" as ft with (
$color-theme: #00897b,
$color-on-theme: #fff
);
.label {
background-color: ft.$color-theme;
color: ft.$color-on-theme;
}
You can also use it without the prefix if you want via * selector
The following variables are available.
$color-scheme: light !default;
$root-font-size: null !default;
$root-bg: if($color-scheme == dark, #000, #fff) !default;
$root-fg: if($color-scheme == dark, #fff, #000) !default;
$color-text: color.change($root-fg, $alpha: 0.87) !default;
$color-text-alt: color.change($root-fg, $alpha: 0.68) !default;
$color-text-muted: color.change($root-fg, $alpha: 0.56) !default;
// Color pallet
$color-theme: #1565c1 !default;
$color-theme-fade: color.change($color-theme, $alpha: 0.2) !default;
$color-on-theme: #fff !default;
$color-error: #b00020 !default;
$color-warning: #ffab40 !default;
$color-success: #00e676 !default;
$item-spacer: 0 0 1em !default;
[1.0.0] - 2021-06-22
Initial Release 🎉
FAQs
Helper component for adding theme specific variables to multiple components
The npm package @fylgja/theme receives a total of 61 weekly downloads. As such, @fylgja/theme popularity was classified as not popular.
We found that @fylgja/theme demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.