Skip to content

More theming options #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 12, 2022
Merged

More theming options #48

merged 7 commits into from
Oct 12, 2022

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Oct 11, 2022

No description provided.

@vercel
Copy link

vercel bot commented Oct 11, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
components-next ❌ Failed (Inspect) Oct 12, 2022 at 1:44PM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Oct 11, 2022

🦋 Changeset detected

Latest commit: cd11921

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@livekit/component-example-next Patch
@livekit/components-core Patch
@livekit/components-styles Patch
@livekit/components-react Patch
@livekit/components-svelte Patch
@livekit/components-vue Patch
@livekit/component-example-sveltekit Patch
@livekit/component-example-nuxt Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -1,6 +1,6 @@
import { Participant } from 'livekit-client';
import { createConnectionQualityObserver } from '../observables/participant';
import { ClassNames } from '@livekit/components-styles/dist/types/styles.css';
import { ClassNames } from '@livekit/components-styles/dist/types/general/styles.css';

export function setupConnectionQualityIndicator(participant: Participant) {
const className: ClassNames = 'lk-connection-quality';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we could use the lkClassName('connection-quality') function to return the prefixed version of the class name.
This way you also don't have to import the ClassNames in all the files.

$t-danger: fn.css-var-with-sass-fallback('danger', $danger);
$t-light: fn.css-var-with-sass-fallback('light', $light);
$t-dark: fn.css-var-with-sass-fallback('dark', $dark);
// Custom Property Definitions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should decide whether to use the name custom properties or CSS variables. I have no problem with custom properties and cp. But maybe the Sass function "fn.to-css-var" should be called "fn.to-cp" then? 🤔

@@ -2,6 +2,7 @@
@use '../variables' as v;

.disconnect-button {
@extend .button;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just out of curiosity: When should we use @extend, @include and when is it better to use a @mixin? Maybe we can capture the reasons for this decision in the README, so we can look them up later.

@lukasIO lukasIO merged commit 4c67a8c into main Oct 12, 2022
@lukasIO lukasIO deleted the theming branch October 12, 2022 13:43
@github-actions github-actions bot mentioned this pull request Oct 12, 2022
@lukasIO lukasIO restored the theming branch October 12, 2022 14:02
@lukasIO lukasIO deleted the theming branch October 12, 2022 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants