Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@greencss/dark-mode
Advanced tools
Readme
This is a darkmode add-on for the greenCSS library.
npm i @greencss/dark-mode
import 'greencss/css/greencss.css'.
import '@greencss/dark-mode/css/greencss-dark.css'
...
import '@greencss/dark-mode/css/classes/color/color.css'
Currently, the following categories are available:
You will find more information about the CSS categories here.
Instead of the normal version, you can also import a lightweight minified version.
import '@greencss/dark-mode/css/minified/greencss-dark.css'
Compact imports also work with categories:
import '@greencss/dark-mode/css/minified/classes/color/color.css'
import 'greencss/css/greencss.css'.
import '@greencss/dark-mode/css/greencss-dark.css'
import 'path-to-your-reset.css-file'.
All greenCSS classes have the same structure. An explanation of this principle can be given with the help of the examples below.
<p class="text-blue dark:text-blue-10">a blue text and a blue-10 text for the dark mode state</p>
If the text colour for an element is to be changed on small screens only (0px - 480px), the class is inserted with a prefix called "sm:".
<p class="text-blue dark:text-blue-10 sm:text-purple dark:sm:text-purple-10">
a purple text for small screens with a dark mode color
</p>
In addition to the responsive classes, all dark mode classes also have active, focus and hover classes, which can be combined as desired. Just add the dark:
prefix in front of every individual class.
<p class="text-blue hover:text-orange dark:text-blue-10 dark:hover:text-orange-10 dark:hover:sm:text-red">
Different text colours and different states for all screens
</p>
You want to collaborate? Have a look at the documentation in the information folder.
For commits, use semantig writing:
Commit | Usage |
---|---|
fix(pencil): stop graphite breaking when too much pressure applied | Fix Release |
feat(pencil): add 'graphiteWidth' option | Feature Release |
perf(pencil): remove graphiteWidth option | Breaking Release |
FAQs
Dark mode for greenCSS. The classy way to write sustainable CSS.
The npm package @greencss/dark-mode receives a total of 1 weekly downloads. As such, @greencss/dark-mode popularity was classified as not popular.
We found that @greencss/dark-mode 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.