Comments (4)
If you browse the Skeleton documentation you'll notice most button elements use this neutral tone by default. It's a stylistic choice.
https://www.skeleton.dev/components/paginators
If you would like to change this, we provide a slew of style props for doing so:
https://www.skeleton.dev/components/paginators?tab=properties
from skeleton.
I opted to use a custom variant with controlVariant="variant-filled-paginator"
,
that works with both theme flavours and I'm happy with it for now
I leave it here, maybe can be useful for others like me that prefer dark on dark, white on white option
.variant-filled-paginator {
@apply bg-surface-200 text-surface-900 dark:bg-surface-700 dark:text-on-surface-token;
}
thanks @endigo9740 really appreciate your help
I love skeleton ui,
it's a great for persons like me that just want to use some ready made opinionated components and move on coding
from skeleton.
hello, first thank for the quick answer
it make sense if is a stylistic choice
sorry to ask, you are referring the controlVariant
property?
if so, can you help me to use the mentioned property to invert the stylistic choice,
for me is not clear how can I do that,
a simple snippet example will be appreciated
in my case I prefer a dark in dark theme, and a white in white theme, is a matter of "taste",
I will appreciate any help
thanks in advance
from skeleton.
@koakh controls contain a set of buttons, so you'll want to adjust he styles here.
Here's where it's detailed in the docs:
Here's an example changing it:
<Paginator ... controlVariant="variant-filled-secondary" />
You can preview other button styles using variants here:
https://www.skeleton.dev/elements/buttons
And learn more about variants here:
https://www.skeleton.dev/docs/variants
If there's not a variant that applies the styles you want, then you my have to create your own custom option. In most cases these are a combination of light/dark mode styles for background, text, and fills. Here's the source for a more specific example:
https://github.com/skeletonlabs/skeleton/blob/master/packages/plugin/src/styles/components/variants.css
from skeleton.
Related Issues (20)
- Multiple typos in the autocomplete component documentation
- Tailwind PurgeCSS Config - Highlight.js - Incorrectly Typed (Docs/Installation) HOT 3
- tw-plugin v0.4.0 removing tailwind class definitions HOT 15
- Issue with breadcrums with 3 entries or more HOT 1
- Button and Form Element Size Normalization
- Add view transitions when switching themes
- v2 Avatar Additions
- v2 Stackblitz dependency updates HOT 1
- Add style prop to TreeViewItem to allow control of content's width HOT 3
- Resolve a11y warnings in multiple components HOT 3
- Chore: Update LICENSE year
- Skeleton v2 migration to Svelte 5 HOT 3
- LightSwitch breaks in multiple tabs HOT 3
- Migrate the v2 docs to Svelte 4 and SvelteKit v2
- Fix onMount import on the Chat block docs
- Svelte v5 RC: TreeView component is non-function HOT 1
- Svelte v5 RC: Theme Generator live previews are non-functional HOT 1
- Fast hover breaks popup HOT 1
- Autocomplete: input should be of type string. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skeleton.