Skip to main content

Style

Let's try to make these CARDs more attractive.
We can use the ready-made FrameworkCard component

App.tsx
const CardView: FunctionComponent = ({
store,
}) => {

// STORE
const state = useStore(store)

// RENDER
return (
** <FrameworkCard
** headerRender={<Header store={store} icon={<EditorIcon />} />}
** store={store}
** >
<TextInput
value={state.text}
onChange={(text) => store.setText(text)}
/>
** </FrameworkCard>
)
}

Now the CARD is also resizable with the cursor on the right margin.

So let's add some color.
Let's create the file Card.module.css:

Card.module.css
.root {
--card-fg: #393939;
--card-bg: #EBFB35;

/* button icon button */
--cmp-select-fg: #EBFB35;
--cmp-select-bg: #393939;

/* perimeter shadow inputtext button */
--cmp-bg: rgba(0, 0, 0, 0.05);

/* tooltip drag dialog float-button */
--dialog-fg: #393939;
--dialog-bg: #EBFB35;
}

Now we have fantastic CARDs that pierce the retina HERE!