Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
slippers-ui
Advanced tools
Slippers is the open-source GitLab Marketing Web Design System. In the spirit of "everyone can contribute", creating guidelines that enable people to build better web pages faster and allows us to co-create with ease. To learn more about design systems, read InVision's guide to design systems.
We're always looking for feedback to improve the experience of working with Slippers. We happily accept contributions, no matter how small. Feel free to submit an issue or open a merge request!
Slippers is build with VueCLI, Storybook, and TailwindCSS. TailwindCSS has been configured as PostCSS plugin.
nvm install
to install the same version of node as listen in .nvmrc
.nvm use
to allow nvm to match your working version of node to the one found within the repository.yarn
to install storybook
, tailwindcss
, and their dependenciesyarn start
to watch for changes within vue
files within ./stories
directory on port 60061yarn view:tailwind
on port 3000Storybook is our isolated UI to code environment for creating anything from blocks and components to layouts and webpages. We are using Vue as our front-end framework for achieving this. The main workflow behind using storybook is:
component.stories.js
file. Storybook is able to interpret these stories and render out different states of that component to the browser.This article is a good practical example on how Storybook works and how to use it.
Gotchas: Args in Storybook vs Props in Vue
You can find our documentation in the Storybook instance for this repository.
Keeping documentation in Storybook allows us to keep a single source of truth for this repository's documentation, alongside the code-based stories as well.
A key idea that we want to reinforce about styling in Slippers is that we heavily modify the default TailwindCSS configuration. While the TailwindCSS docs page is still helpful, much of it does not reflect our configuration for this repository. To help with this, we have added a page that displays the existing utility classes within our current TailwindCSS configuration. URL: https://gitlab-com.gitlab.io/marketing/inbound-marketing/slippers-ui/tailwind/. To run locally, run yarn serve:tailwind-viewer
yarn build-storybook
to build to /storybook-static
directoryTo build the entire library, run
yarn build
We use Vue CLI to build our components using the library target. vue.config.js
has some of the configuration options set up, and is extensible.
The yarn build
command chains the Vue CLI script with the PostCSS script:
"build": "vue-cli-service build --target lib --name slippersComponents src/main.js && yarn build:css"
Right now we target src/main.js
as the entrypoint for the library, which in turn pulls in components we manually specify. We extract (and ignore) CSS from this build, because after the Vue CLI runs its build process, PostCSS runs our Tailwind build step.
The build step creates these files:
The order of those build commands matters, since the build
command in Vue CLI will automatically remove the dist/
folder first. We can disble this if need to change the ordering.
yarn prettier:check
. If you would like Prettier to format your entire repo automically, run yarn prettier:write
. You may also pass your own arguments to prettier by running yarn prettier
.FAQs
GitLab Marketing Design System
We found that slippers-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.