feat(styles): one stylesheet source for react and svelte (#3350)
* feat(styles): create stylesheets for react and svelte based on one source * refactor(styling): cleanup * refactor(postcss): share a config * refactor(postcss): replace env hack with env file
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
<script lang="ts">
|
||||
import cc from 'classcat';
|
||||
|
||||
export let radius = 5;
|
||||
export let color: string | undefined = undefined;
|
||||
let className: string = '';
|
||||
export { className as class };
|
||||
</script>
|
||||
|
||||
<circle cx={radius} cy={radius} r={radius} style:--pattern-color-props={color} />
|
||||
|
||||
<style>
|
||||
circle {
|
||||
fill: var(
|
||||
--pattern-color-props,
|
||||
var(--background-pattern-color, var(--background-pattern-color-default))
|
||||
);
|
||||
}
|
||||
</style>
|
||||
<circle
|
||||
cx={radius}
|
||||
cy={radius}
|
||||
r={radius}
|
||||
class={cc(['svelte-flow__background-pattern', 'dot', className])}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user