Code Monkey home page Code Monkey logo

Comments (4)

endigo9740 avatar endigo9740 commented on June 14, 2024 1

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.

koakh avatar koakh commented on June 14, 2024 1

@endigo9740

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.

koakh avatar koakh commented on June 14, 2024

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.

endigo9740 avatar endigo9740 commented on June 14, 2024

@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:
image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.