0.0.4 • Published 2 years ago

@sempervirens/client-css v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Sempervirens Client: CSS

A set of CSS utilities

Installation

npm i @sempervirens/client-css

Note

These are exceedingly simple and incomplete. I add to them as I need them across my extraprofessional projects. Why not use one of the available frameworks? Because they're more complex than I need for my projects, which are lean, with only one developer who knows what everything does.

Usage

There are a couple ways to import it into an HTML file.

  • Import it directly from the node_modules folder if the HTML file is compiled.

<link rel="stylesheet" href="./node_modules/@sempervirens/client-css/dist/utils.min.css">

  • Import it from a server route.

Express

app.get('/static/utils.min.css', (req, res) => {
  res.sendFile('path/to/node_modules/@sempervirens/client-css/dist/utils.min.css');
});

HTML

<link rel="stylesheet" href="/static/utils.min.css">

CSS

@import 'path/to/node_modules/@sempervirens/client-css/dist/utils.min.css';