Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
deque-pattern-library
Advanced tools
Changelog
Readme
$ npm install deque-pattern-library
$ bower install deque-pattern-library
Thanks to unpkg, you can link directly to deque pattern library files.
<link rel="stylesheet" href="https://unpkg.com/deque-pattern-library/dist/css/pattern-library.min.css" />
<!-- or -->
<link rel="stylesheet" href="https://unpkg.com/deque-pattern-library/dist/css/pattern-library.css" />
<script src="https://unpkg.com/deque-pattern-library/dist/js/pattern-library.min.js"></script>
<!-- or -->
<script src="https://unpkg.com/deque-pattern-library/dist/js/pattern-library.js"></script>
The pattern library relies on font awesome meaning including it is required.
You can include it using a CDN (see font awesome getting started docs)
$ npm install font-awesome --save
The patterns look best when the roboto font is available.
You can include it using a CDN, like so:
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700">
install it:
$ npm install typeface-roboto --save
include it (in your entry-point):
import 'typeface-roboto';
Just drop the css and js into your page:
<html>
<head>
...
<link rel="stylesheet" href="./node_modules/deque-pattern-library/dist/css/pattern-library.min.css" />
</head>
<body>
...
<script src="./node_modules/deque-pattern-library/dist/js/pattern-library.min.js"></script>
</body>
</html>
pattern-library.css
pattern-library.min.css
pattern-library.js
pattern-library.min.js
variables.less
: All of the pattern library's colors and mixinsPlease refer to the wiki
All additions must be approved by our UX team so before working on anything, please create an Issue including a detailed description on the requested pattern and several use cases for it.
npm install
npm run build
or for development - npm run dev
which will rebuild when files are changedNOTE: if a new component or composite is added, remember to create a quick wiki entry explaining what is absolutely necessary in using this widget.
Testing is done using mochify along with the 'chai' assertion library (assert.isFalse(!!0)
). The test/
directory structure matches the lib/
directory. This means that if you're testing lib/components/foo/index.js
, you would create a test in test/components/foo/index.js
. See the test/
directory for examples. The tests are browserified and transpiled before running in the phantomjs headless browser so you can require
/ import
stuff and use ES6 syntax in the tests.
$ npm test
or to have a watcher re-run tests every time you add a new test:
$ npm run test:dev
The pattern library uses the debug module. To turn all debugging on, execute: localStorage.debug = 'dqpl:*'
and refresh the page. The directory structure of lib is used as the debug naming convention. For example, to specifically debug the "selects" component, execute: localStorage.debug = 'dqpl:components:selects'
.
FAQs
Deque Pattern Library
The npm package deque-pattern-library receives a total of 881 weekly downloads. As such, deque-pattern-library popularity was classified as not popular.
We found that deque-pattern-library demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.