
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@elucidata/css
Advanced tools
Co-locate your CSS with your components. For use in React/Preact/Vanilla... Probably SolidJS too.
Co-locate your CSS with your components. For use in React/Preact/Vanilla... Probably SolidJS too.
Minify+Gzip < 2kB
bun add github:elucidata/css
Or npm, pnpm, yarn... Whatever.
import { css } from "@elucidata/css"
const Button = (props) => (
<button className={Button.styles("Button")}>{props.children}</button>
)
Button.styles = css`
&& {
background: dodgerblue;
color: white;
}
`
The configurable token && will be replaced with a unique name based on the hash of the entire string.
Also supports creating inline components.
import { comp } from "@elucidata/css/react"
const Card = comp("div.Card").css`
border: 1px solid silver;
header {
color: dodgerblue;
padding: 1rem;
}
section {
padding: 1rem;
}
footer {
color: dimgray;
padding: 1rem;
}
`
Styles using the syntax are scoped to the component.
import { configure } from "@elucidata/css"
configure({
// defaults:
debug: false,
verbose: false,
append: "batch",
target: document.head,
regExp: /&&/g,
hashIds: false,
prefix: "css",
mode: "auto",
})
Configuration options:
interface IConfiguration {
append: "each" | "batch" // style creation
mode: "style" | "sheet" | "auto" // whether constructable stylesheets are used
debug: boolean
verbose: boolean
target: Element
regExp: RegExp
hashIds: boolean
prefix: string
}
FAQs
Co-locate your CSS with your components. For use in React/Preact/Vanilla... Probably SolidJS too.
The npm package @elucidata/css receives a total of 2 weekly downloads. As such, @elucidata/css popularity was classified as not popular.
We found that @elucidata/css 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
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.