{"_id":"@95ytx/components-styles","name":"@95ytx/components-styles","dist-tags":{"latest":"1.1.3"},"versions":{"1.1.3":{"name":"@95ytx/components-styles","version":"1.1.3","license":"Apache-2.0","author":{"name":"LiveKit"},"repository":{"type":"git","url":"git+https://github.com/livekit/components-js.git","directory":"/packages/styles"},"exports":{"./types":{"types":"./dist/types_unprefixed/index.scss.d.ts"},"./assets/icons/*":{"import":"./assets/icons/*","require":"./assets/icons/*"},"./themes/*":{"import":"./dist/general/themes/*.css","require":"./dist/general/themes/*.css","types":"./dist/types/general/themes/*.scss.d.ts"},"./components":{"import":"./dist/general/components/index.css","require":"./dist/general/components/index.css","types":"./dist/types/general/components/index.scss.d.ts"},"./components/participant":{"import":"./dist/general/components/participant/index.css","require":"./dist/general/components/participant/index.css","types":"./dist/types/general/components/participant/index.scss.d.ts"},"./components/controls":{"import":"./dist/general/components/controls/index.css","require":"./dist/general/components/controls/index.css","types":"./dist/types/general/components/controls/index.scss.d.ts"},"./components/layout":{"import":"./dist/general/components/layout/index.css","require":"./dist/general/components/layout/index.css","types":"./dist/types/general/components/layout/index.scss.d.ts"},"./prefabs":{"import":"./dist/general/prefabs/index.css","require":"./dist/general/prefabs/index.css","types":"./dist/types/general/prefabs/index.scss.d.ts"},"./*":{"import":"./dist/general/*","require":"./dist/general/*","types":"./dist/types/general/*.scss.d.ts"},".":{"types":"./dist/types/general/index.css.d.ts","import":"./dist/general/index.css","require":"./dist/general/index.css"}},"main":"dist/general/index.css","scripts":{"prebuild":"rimraf .temp dist","build":"pnpm compile:sass && pnpm postcss && pnpm generate:types","compile:sass":"sass scss:.temp/general --style compressed","dev":"nodemon -e scss,js -x \"pnpm build\"","generate:types":"pnpm generate:types:unprefixed && pnpm generate:types:prefixed","generate:types:prefixed":"cd dist && typed-scss-modules \"**/*.css\" --exportType default --outputFolder ../dist/types --nameFormat kebab","generate:types:unprefixed":"cd scss && typed-scss-modules \"**/*.scss\" --exportType default --outputFolder ../dist/types_unprefixed --nameFormat kebab --exportTypeName UnprefixedClassNames","postcss":"postcss \".temp/**/*.css\" --base .temp -d ./dist","test":"vitest --run","test:watch":"vitest"},"peerDependencies":{},"devDependencies":{"modern-normalize":"^3.0.0","nodemon":"^3.0.0","postcss":"^8.4.17","postcss-cli":"^11.0.0","postcss-prefixer":"^3.0.0","postcss-variables-prefixer":"^1.2.0","rimraf":"^6.0.0","sass":"^1.54.6","typed-scss-modules":"^8.0.0","vitest":"^2.0.0"},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@95ytx/components-styles@1.1.3","gitHead":"cfdb1cd04ec2412259cea555bde07720d9c8870d","description":"Beautiful base styling for LiveKit components that you can use as is, build upon, or create your own.","bugs":{"url":"https://github.com/livekit/components-js/issues"},"homepage":"https://github.com/livekit/components-js#readme","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-4x5dX8OUYJLnbaBH1lmjXNd/jEcCMosjnM9MTAMF3P9IU2GUpmMYRwHEwqz/DaIOw7/iBWMg9O11q3qNIMFDeA==","shasum":"9018f9edd0fcc0bef2a0c53d6de90d94f987e3f5","tarball":"https://registry.npmjs.org/@95ytx/components-styles/-/components-styles-1.1.3.tgz","fileCount":125,"unpackedSize":160079,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNaUjBEoOVYoaa/eD2SuJNvHR9X6ya1FaMGyyFV9vlVQIgEvLIdpjJ2Ejn20MCvIwY1z0f6Vp1KVxr4bkUpkTqNbE="}]},"_npmUser":{"name":"95ytx","email":"licj@9500.cn"},"directories":{},"maintainers":[{"name":"95ytx","email":"licj@9500.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/components-styles_1.1.3_1728736879036_0.23706250965281517"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-12T12:41:18.940Z","1.1.3":"2024-10-12T12:41:19.217Z","modified":"2024-10-12T12:41:19.488Z"},"maintainers":[{"name":"95ytx","email":"licj@9500.cn"}],"description":"Beautiful base styling for LiveKit components that you can use as is, build upon, or create your own.","homepage":"https://github.com/livekit/components-js#readme","repository":{"type":"git","url":"git+https://github.com/livekit/components-js.git","directory":"/packages/styles"},"author":{"name":"LiveKit"},"bugs":{"url":"https://github.com/livekit/components-js/issues"},"license":"Apache-2.0","readme":"# LiveKit Components **Styles**\r\n\r\nBeautiful base styling for LiveKit components that you can use as is, build upon, or create your own.\r\n\r\n<!--NAV_START-->\r\n\r\n## Monorepo Navigation\r\n\r\n- [Home](../../README.md)\r\n- **Framework Implementations**:\r\n  - [React](../../packages/react/README.md)\r\n- **Examples**\r\n  - [Next.js](../../examples/nextjs/README.md)\r\n- **Internal Packages**\r\n  - [Core](../../packages/core/README.md)\r\n  - [Styles 👈](../../packages/styles/README.md)\r\n\r\n<!--NAV_END-->\r\n\r\n### Dev notes\r\n\r\n#### Prefix\r\n\r\nTo 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](postcss.config.js)) to add the prefix during the build step. This means that you should never write a prefix inside this styles package.\r\n\r\nThe PostCSS plugins transform the CSS selectors as follows, to make it easier to understand here are a few examples with a prefix of \"lk\":\r\n\r\n| no prefix               | with `lk` prefix           |\r\n| ----------------------- | -------------------------- |\r\n| `.button`               | `.lk-button`               |\r\n| `--border-color`        | `--lk-border-color`        |\r\n| `var(--fg)`             | `var(--lk-fg)`             |\r\n| `[data-active='false']` | `[data-lk-active='false']` |\r\n| `&[data-muted='true']`  | `&[data-lk-muted='true']`  |\r\n\r\n#### ⚠️ Currently not supported prefix:\r\n\r\n| no prefix                     | with `lk` prefix                 |\r\n| ----------------------------- | -------------------------------- |\r\n| `attr(data-participant-name)` | `attr(data-lk-participant-name)` |\r\n\r\n#### `@include` vs `@extend`\r\n\r\n> @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.\r\n\r\nThe 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`).\r\n\r\n```\r\n\r\n```\r\n","readmeFilename":"README.md"}