Replies: 2 comments 2 replies
-
If I'm understanding the question here, I believe most of this is addressed by someone coming in and extending the component and then simply overriding the I'm planning on building some more examples of extended classes use that might make this more clear. It's something I've been thinking about this week and I have some ideas there to present to the group. |
Beta Was this translation helpful? Give feedback.
-
We have used the extension to overwrite or remove CSS from a component we are basically using as-is. Works OK. If the component is structurally / functionally different, we copy & paste & modify rather than extend. import { customElement } from 'lit/decorators.js';
import { OutlineHeading } from '../../base/outline-heading/outline-heading';
import outlineComponentStyles from '../../base/outline-heading/outline-heading.css.lit';
import componentStyles from './example-heading.css.lit';
/**
* Heading
*
* @element example-heading
*/
@customElement('example-heading')
export class ExampleHeading extends OutlineHeading {
static styles = [outlineComponentStyles, componentStyles];
} |
Beta Was this translation helpful? Give feedback.
-
I know we wanted to have minimal styles to allow for projects to be able to specify styles. Do we have a documented uniform way of doing this?
<outline-button>
and<design-button>
in the design system?@apply border-gray-50
or a specific color, how would someone update that to blue if needed? Since you wouldn't updatevar(--gray-500)
to a blue colorBeta Was this translation helpful? Give feedback.
All reactions