1.0.0-rc.2 • Published 11 months ago

@paramour/arc-plugin-paramour-css v1.0.0-rc.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 months ago

@paramour/arc-plugin-paramour-css

Plugin for generating parametric CSS with Paramour in an Architect app.

Install

npm i @paramour/arc-plugin-paramour-css

Usage

Setup

In your app.arc file:

@app
my-arc-app

# Define your plugins pragma and add the Paramour plugin
@plugins
paramour/arc-plugin-paramour-css

# Enable the plugin
@paramour-css
# with an optional configuration file:
config ./paramour.mjs

Utility functions

Utility functions are provided to access your generated stylesheet:

import { getStyles } from '@paramour/arc-plugin-paramour-css'

getStyles.linkTag()   // a <link rel="stylesheet"> tag
getStyles.styleTag()  // a <style> tag for inline styles
getStyles.path()      // root-relative path to the .css file

getAll() is also available to create an object with each result:

import { getStyles } from '@paramour/arc-plugin-paramour-css'

const styles = getStyles.all()
styles.link    // a <link rel="stylesheet"> tag
styles.style   // a <style> tag for inline styles
styles.path    // root-relative path to the .css file
1.0.0-rc.2

11 months ago

1.0.0-rc.1

11 months ago

1.0.0-rc.0

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago