![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
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.
@enhance/arc-plugin-styles
Advanced tools
arc-plugin-styles
Plugin for generating Enhance CSS utility classes in an Architect app.
npm i @enhance/arc-plugin-styles
In your app.arc
file:
@app
enhnc-styl
# Define your plugins pragma and add the enhance-styles plugin
@plugins
enhance/arc-plugin-styles
# Define the styles pragma
@enhance-styles
filename utilities.css # defaults to "styles.css"
config ./enhance-styles.json
Configure
enhance-styles
by providing a .json file with theconfig
option. See the enhance-styles documentation.
You will now be able to load a utility css file from
<link rel="stylesheet" href="/_static/utilities.css">
Call the getStyles
function to get either a link tag or a style tag for your utility css file.
It takes two arguments, the name of your output utility css file and a configuration object for enhance styles.
const stylesFileName = 'utility-classes.css'
const config = {
base: 20,
scale: {
ratio: 'goldenRatio',
steps: 12
},
fonts: {
sans: "system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif",
serif: "Georgia,Cambria,Times New Roman,Times,serif",
mono: "Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace"
},
base: 20,
steps: 8,
theme: {
light: "#fff",
dark: "#222",
primary: "#1f74d6",
secondary: "#7327ce",
success: "#2cdd93",
info: "#2196f3",
warning: "#ffeb3b",
error: "#e21893"
}
}
const styles = getStyles(stylesFileName, config)
console.log(styles)
FAQs
Plugin for generating enhance CSS utility classes
The npm package @enhance/arc-plugin-styles receives a total of 48 weekly downloads. As such, @enhance/arc-plugin-styles popularity was classified as not popular.
We found that @enhance/arc-plugin-styles demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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.