Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@dpc-sdp/ripple-global
Advanced tools
The core module all SDP Ripple modules depend on.
npm install @dpc-sdp/ripple-global --save
For Nuxt app, register RplGlobal plugin by adding plugins/ripple.js
file:
import Vue from 'vue'
import RplGlobal from '@dpc-sdp/ripple-global'
const rplOptions = {
nuxt: true
}
Vue.use(RplGlobal, rplOptions)
Then add plugins/ripple.js
to plugins section of nuxt.config.js:
{
plugins: [
'~/plugins/ripple'
]
}
If you are not using Nuxt, register RplGlobal plugin in your app entry point:
import Vue from 'vue'
import RplGlobal from '@dpc-sdp/ripple-global'
Vue.use(RplGlobal)
In Sass:
@import "~@dpc-sdp/ripple-global/style"
The $rpl-typography
variable can be overridden to define font rules for
multiple typesets with multiple breakpoints.
Example:
$rpl-typography: (
// Define a typeset with a rule.
'heading': ('xl', 1.5em, 'bold', true),
'body': ('m', 1.2em, 'regular'),
// Define a typeset with breakpoints.
'heading_responsive': (
'xs': ('s', 1em, 'bold', true),
'm': ('m', 1.1em, 'bold', true),
'l': ('l', 1.2em, 'bold', true),
'xl': ('xl', 1.2em, 'regular', true),
)
);
A rule consists of:
('font_size', line_height, 'weight', show_background)
font_size
- String - a value from the $rpl-font-sizes
list.line_height
- CSS rule - a value for line-height.weight
- String - a value from the $rpl-fonts
list.show_background
- Optional Boolean - display a background. Expects inner HTML wrapped in a span.A typeset name (e.g. 'heading'
) can be assigned a rule or a list of breakpoints with rules.
A breakpoint list should include xs
to ensure font rules are defined for mobile size.
Typesets can be added to CSS selectors with the rpl_typography()
mixin.
.responsive-header {
@include rpl_typography('heading_responsive');
}
body {
@include rpl_typography('body');
}
FAQs
The core styles and utilities used by all ripple components. Includes sets of colours, fonts, breakpoints.
The npm package @dpc-sdp/ripple-global receives a total of 166 weekly downloads. As such, @dpc-sdp/ripple-global popularity was classified as not popular.
We found that @dpc-sdp/ripple-global demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.