Skip to content

Preprocessing default styles #80

Answered by ElMassimo
luminarious asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Hardi! @luminarious

As you mentioned, importing styles in src/app.ts is the best way to add global styles, as in these examples.

For not-so-global styles, have in mind that layouts can inherit from other layouts—a common pattern I've been using is to create a base layout which can be easily referenced from other layouts using <template layout="base">.


Currently, îles only attempts to detect src/app.ts (in contrast with src/app.js).

You don't really need to use TypeScript if you don't want to, and can write plain JS, but the file needs to be named that way.

Let me know if you meant src/app.ts, if you share a minimal reproduction I can take a look.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@luminarious
Comment options

Answer selected by ElMassimo
Comment options

You must be logged in to vote
6 replies
@gilesbutler
Comment options

@gilesbutler
Comment options

@gilesbutler
Comment options

@ElMassimo
Comment options

@gilesbutler
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants