
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@livekit/components-styles
Advanced tools
Beautiful base styling for LiveKit components that you can use as is, build upon, or create your own.
Beautiful base styling for LiveKit components that you can use as is, build upon, or create your own.
To avoid collisions CSS all CSS selector used for LiveKit Components (classes, CSS variables, and custom data attributes) are given the same prefix. To avoid typing redundant prefixes and keep the door open for user-defined prefixes, we use PostCSS plugins (see postcss.config.js) to add the prefix during the build step. This means that you should never write a prefix inside this styles package.
The PostCSS plugins transform the CSS selectors as follows, to make it easier to understand here are a few examples with a prefix of "lk":
no prefix | with lk prefix |
---|---|
.button | .lk-button |
--border-color | --lk-border-color |
var(--fg) | var(--lk-fg) |
[data-active='false'] | [data-lk-active='false'] |
&[data-muted='true'] | &[data-lk-muted='true'] |
no prefix | with lk prefix |
---|---|
attr(data-participant-name) | attr(data-lk-participant-name) |
@include
vs @extend
@mixin is used to group css code that has to be reused a no of times. Whereas the @extend is used in SASS to inherit(share) the properties from another css selector. @extend is most useful when the elements are almost same or identical.
The compiled css output would suggest to use @extend
in cases where css classes should inherit from parent classes (e.g. .disconnect-button
inherits base properties from .button
).
FAQs
Beautiful base styling for LiveKit components that you can use as is, build upon, or create your own.
The npm package @livekit/components-styles receives a total of 63,530 weekly downloads. As such, @livekit/components-styles popularity was classified as popular.
We found that @livekit/components-styles demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 32 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.