Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing color config for tailwind.config.js in "Getting Started" section of the docs #323

Closed
fromaline opened this issue Jan 16, 2025 · 3 comments

Comments

@fromaline
Copy link

Hey @techniq,

I noticed that the "Getting Started" section of the documentation for LayerChart doesn’t mention the need to update tailwind.config.js with the following configuration:

surface: {
  content: "hsl(var(--card-foreground) / <alpha-value>)",
  100: "hsl(var(--background) / <alpha-value>)",
  200: "hsl(var(---muted) / <alpha-value>)",
  300: "hsl(var(--background) / <alpha-value>)"
},

I was lost for a few hours, trying to understand why I didn't see the axis, grid, etc. It's very unintuitive in my opinion.

Btw, thanks for your work on LayerChart!

@techniq
Copy link
Owner

techniq commented Jan 16, 2025

Hey @fromaline, sorry for the confusion. These colors are defined by default when using Svelte UX, but I need to call this out for other frameworks. I currently have all the major Svelte libraries documented in #160, but need to add this to the Getting Started section. I would kindly review a PR if you get time, but I hope to "soon"

@fromaline
Copy link
Author

@techniq, thanks for your answer! I’ll give it a shot if I find the time.

By the way, is it possible to use SVG/images as axis ticks in LayerChart?

@techniq
Copy link
Owner

techniq commented Jan 16, 2025

@fromaline TBH I've never tried, but should be possible using the SVG image element and overriding the tickLabel slot on Axis. At some point would probably need to create an Image primitive (similar to rect/Rect, etc) to make it easy to support Canvas rendering context as well (via drawImage() (GeoTile does this mostly already)

@techniq techniq closed this as completed Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants