Jump to content

Importing Swatch Palattes from something other than a .afpalette file?


Recommended Posts

Is there a way to import this Gradient (css) into Affinity?

For example:

background-image: linear-gradient(top, rgb(0,0,0) 0%, rgb(28,17,145) 36%,
     rgb(234,11,11) 74%, rgb(255,136,0) 86%, rgb(239,236,55) 93%, rgb(137,101,
    8) 93%, rgb(0,0,
    0) 100%);
background-image: -moz-linear-gradient(center top, rgb(0,0,0) 0%,rgb(28,17,
    145) 36%,rgb(234,11,11) 74%,rgb(255,136,0) 86%,rgb(239,236,55) 93%,
    rgb(137,101,8) 93%,rgb(0,0,
    0) 100%);
background-image: -webkit-gradient(linear, left top, left bottom,
     color-stop(0.000, rgb(0,0,0)),color-stop(0.366, rgb(28,17,145)),
    color-stop(0.750, rgb(234,11,11)),color-stop(0.865, rgb(255,136,0)),
    color-stop(0.935, rgb(239,236,55)),color-stop(0.935, rgb(137,101,8)),
    color-stop(1.000, rgb(0,0,0)));

 

Or also, from a text file list of colors, written in RGB numbers (like attached image)?

image.png

Edited by moretap
clarified
Link to comment
Share on other sites

I think the closest you could get to doing this in Affinity alone is to create or find an image that already uses just these colors or gradients, & then use one of the options to add the palette from that image.

All 3 1.10.8, & all 3 V2.5.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

3 hours ago, Lee_T said:

Not within Designer as far as i'm aware,  but using a CSS to SVG converter seemed to work fine.

How does this allow the creation of a new Swatches panel palette?

All 3 1.10.8, & all 3 V2.5.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

1 hour ago, R C-R said:

How does this allow the creation of a new Swatches panel palette?

You can open the SVG file and add the gradient to a gradient palette...

12 hours ago, moretap said:

Or also, from a text file list of colors, written in RGB numbers (like attached image)?

You can in a bit of a roundabout way... Affinity software isn't very flexible when it comes to palette creation but you can actually add it as a .csv file to the Pantones folder if formatted correctly (see attached CSV file) and it will appear as an automatic palette in the Swatches Pantone section of the Colour Palette, though all the colours then appear as global spot colours.

Alternatively, you could download a trial version of Vectorstyler which has a very flexible approach to palettes allowing you to convert multiple different file formats, including CSV, XML, JSON to ASE which you can then import directly into Affinity software...

You can also import the attached .afpalette file into Affinity apps though again the colours will all appear as global spot colours...

Colour Palette.csv

Colour Palette.afpalette

 

Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5
Affinity Designer Beta 2.6.0.2861 | Affinity Photo Beta 2.6.0.2861 | Affinity Publisher Beta 2.6.0.2861

MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse
HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse

Link to comment
Share on other sites

3 hours ago, Hangman said:

You can open the SVG file and add the gradient to a gradient palette...

That's what I assumed but I wanted to make sure I was not missing something else that would be simpler.

All 3 1.10.8, & all 3 V2.5.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

17 hours ago, R C-R said:

I think the closest you could get to doing this in Affinity alone is to create or find an image that already uses just these colors or gradients, & then use one of the options to add the palette from that image.

Yeah, that is a great feature for most cases.

Link to comment
Share on other sites

5 hours ago, Hangman said:

You can open the SVG file and add the gradient to a gradient palette...

You can in a bit of a roundabout way... Affinity software isn't very flexible when it comes to palette creation but you can actually add it as a .csv file to the Pantones folder if formatted correctly (see attached CSV file) and it will appear as an automatic palette in the Swatches Pantone section of the Colour Palette, though all the colours then appear as global spot colours.

Alternatively, you could download a trial version of Vectorstyler which has a very flexible approach to palettes allowing you to convert multiple different file formats, including CSV, XML, JSON to ASE which you can then import directly into Affinity software...

You can also import the attached .afpalette file into Affinity apps though again the colours will all appear as global spot colours...

Colour Palette.csv 1.29 kB · 1 download

Colour Palette.afpalette 6.67 kB · 0 downloads

 

Ok, I hadn't explored using an SVG, that opens up a lot of options. Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.