
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.
@utrecht/component-library-css
Advanced tools
Component library bundle for the Municipality of Utrecht based on the NL Design System architecture
CSS components are developed using BEM class names and the stylesheets can be included in your page side-effect free. Apply the class names to your elements to make them stylable using design tokens.
npm install --save-dev --save-exact @utrecht/component-library-css
Theoretically you can include the components in your HTML page like so, but this is not the typical use case of this library:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Example page</title>
<link rel="stylesheet" href="node_modules/@utrecht/component-library-css" />
</head>
<body>
<h1 class="utrecht-heading-1">Home</h1>
<p class="utrecht-paragraph">Hello, world!</p>
</body>
</html>
The BEM class names can be particularly useful to include only the CSS you need using CSS modules (in React).
import React from "react";
import style from "@utrecht/component-library-css";
export default class ExamplePage extends React.Component {
render() {
return (
<>
<h1 className={btn["utrecht-heading-1"]}>Home</h1>
<p className={btn["utrecht-paragraph"]}>Hello, world!</p>
</>
);
}
}
These files implement a white-label component library. You need to include a theme with CSS variables to make it look good.
dist/html.css
: component library for opinionated styling of HTML elements. Add the utrecht-html
class name to use it.dist/index.css
: component library for opinionated styling of HTML elements. Use the BEM class names to use the components.dist/prince-xml.css
: component library that works with Prince XML, to generate accessible PDFs from HTML files.FAQs
Component library bundle for the Municipality of Utrecht based on the NL Design System architecture
The npm package @utrecht/component-library-css receives a total of 1,108 weekly downloads. As such, @utrecht/component-library-css popularity was classified as popular.
We found that @utrecht/component-library-css demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
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.